Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not add variables in special type #94

Open
0DennisLee0 opened this issue Mar 10, 2020 · 2 comments
Open

Can not add variables in special type #94

0DennisLee0 opened this issue Mar 10, 2020 · 2 comments

Comments

@0DennisLee0
Copy link

The variable can only be added in the BaseDataType. Can not be specified in other VariableDataType like DataItem. Is is a bug?

@araisch
Copy link

araisch commented Jul 28, 2020

Maybe related:

  1. Adding a new Variable as Component of an ObjectType with the PopUp (Rightclick -> Add Variable)
  2. Choose the TypeDefinition (e.g. Boolean) -> it shows the chosen Type in the Button.
  3. After clicking "OK", Output Log says uamodeler.model_manager - INFO - Creating variable with args: (NumericNodeId(ns=2;i=0), QualifiedName(2:IsPresent), Variant(val:True,type:VariantType.Boolean), <VariantType.Boolean: 1>, NumericNodeId(i=1))')
  4. The new Reference is shown in "References Editor", but TypeDefinition column shows "BaseDataVariableType", same for the Variable itself ("HasTypeDefinition" is "BaseDataVariableType" or i=63)
  5. Here you can change it to the right TypeDefinition by clicking on "NodeId" and then the 3 dots, even different from "BaseDataType", but should be the right one in first place.

@Psoke
Copy link

Psoke commented Jul 19, 2021

But if you do it this way, neither the mandatory nor the optional properties of a specific type are beeing pulled. I can not find a way to add a simple VariableType like AnalogItemType directly when adding variables and either way it does not pull the property EURange with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants