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

Missing type_of_elements field in Arrays with values #59

Open
FlorianDue opened this issue Aug 13, 2024 · 0 comments
Open

Missing type_of_elements field in Arrays with values #59

FlorianDue opened this issue Aug 13, 2024 · 0 comments

Comments

@FlorianDue
Copy link

When starting a new PFDL with the scheduler, I initially transform the PFDL Structures to OPC UA Data Types.

In this context, I use the list with the custom Structures from Scheduler(...).process.structs generate OPC UA data types out of it. in this context, Array fields of Structures do not provide values (since they are only type definitions and no instances), however, the data type of the array elements can be extracted from the type_of_elements field of the PFDL Struct class:

grafik

However, this information is missing, as soon as i receive input and output parameters from the Service/Task started callbacks. here i use e.g., the task_api.input_parameters provided by the scheduler callback to create OPC UA instances of the required data types. In this context, the type_of_elements field of the PFDL Array type is empty.

grafik

Currently, I use a workaround where i access the first array element (at least in case of Structs, the name field of the Structs inside the array are currently providing the type. i did not check with numeric, string or bool arrays)

Is there a solution on how to provide this information?

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

1 participant