Hi,
Is it possible to use the COP instruction to copy only one element of a structure or UDT to an array with the same type as the element. Per example:
Structure:
Structure[100], with each on being comprised of:
Structure[xx].element1 (type REAL)
Structure[xx].element2 (type REAL)
My destination array would be Destination_Array[100] (type REAL)
I want to basically copy all the .element2 of my Structure into the destination array. Can I use the following COP instruction?
COP
Source: Structure[0].element2
Dest : Destination_Array[0]
Length: 100
I would also be able to do the opposite which is write from the Destination array back to each .element2 in the structure array.
Thanks
Is it possible to use the COP instruction to copy only one element of a structure or UDT to an array with the same type as the element. Per example:
Structure:
Structure[100], with each on being comprised of:
Structure[xx].element1 (type REAL)
Structure[xx].element2 (type REAL)
My destination array would be Destination_Array[100] (type REAL)
I want to basically copy all the .element2 of my Structure into the destination array. Can I use the following COP instruction?
COP
Source: Structure[0].element2
Dest : Destination_Array[0]
Length: 100
I would also be able to do the opposite which is write from the Destination array back to each .element2 in the structure array.
Thanks