In the modified example, “Coffee Machine” is a data structure as shown in the picture.
If I now want to access the values (e.g., write or read the values), how would I do it? I tried to write a value to the struct, but I received a message saying:
‘Writing of struct not implemented
Variable( name=@Pvi/LNANSL/TCP/myArsim/myProg/myComplexStruct, linkID=212, VT=struct )’
Do I need to implement a method myself? If so, do you maybe have any tips on how to do it and things I need to consider?
So the code only allows writing to basic datatypes. You either have to implement it yourself or work around it with simple variables which you then copy in the cyclic code to the structure.
Hope that helps
BR
Edit: It seems like you can still access single member variables of a struct simply by using the full name:
By this time it would be easier to understand or try myself if you shared the AS project (I have no clue what “the modified example” is. My CoffeeMachine does not contain “myComplexStruct”. Also please share your python file.