You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to declare Arrays of Struct by combining the UserArray and UserStruct example.
You have to carefully calculate the length of your struct.
ArrayAttribute = the Dimensions! not the number of elements (at the moment only 1 Dimension allowed)
ArrayDimensionAttribute = Sets
Define a Structure "YourStruct" (with structureAttribute)
Create Array after the UserArray Pattern of Type "YourStruct"
Please add an example for this usecase.
The text was updated successfully, but these errors were encountered:
The User Array example now shows how to use an Arrays of Structs as an Input parameter on a function block, however it is not clear how to use an Array of Structs as an Output parameter.
Using the current example, it's not possible to directly write to elements of structs in an array, as is required for Output parameters. Instead, pointers must be used. This example copies each struct element from an input array of structs (arrPara) to an output array of structs (arrOutput):
It would be great to include a case like this in the example.
It is possible to declare Arrays of Struct by combining the UserArray and UserStruct example.
You have to carefully calculate the length of your struct.
ArrayAttribute = the Dimensions! not the number of elements (at the moment only 1 Dimension allowed)
ArrayDimensionAttribute = Sets
Please add an example for this usecase.
The text was updated successfully, but these errors were encountered: