I have been struggling all week on how to pass data to and from a 2D array of clusters from LabVIEW using the TestStand API via Callbacks.
I couldn't find anything online, but the AEs finally figured it out for me. So, I thought I'd post how I did it.
If you use the GetPropertyObjectByOffset method, you can address a 2D array element by the offset. In TestStand, even though the array elements are a matrix, they are stored in memory contiguously. The offset to access an individual element is calculated by using the following formula:
[x],[y], totalX
offset = y*totalX + x
I am using StationGlobals for my array, so in order to make this work, you first use the SequenceContext to locate the StationGlobals Property. Attached is an example.
Jamie Olive
VP, Randall Consulting Services
(505) 350-2272
rcsinc@cableone.net