08-22-2011 10:03 PM
Hi Ppl,
I have an array of clusters in LabVIEW. The cluster has two elements a boolean and a numeric. When I try to set this array of clusters from LabVIEW to TestStand using the TestStand API's I get an error that the type does not match.
To explain in detail I have an Local Array of containers with three elements. Each container element has a boolean and a numeric. I have a equivalent array of clusters in LabVIEW. In a LabVIEW action step I use the to variant node to convert the array to a cluster and use the setvaluevariant method to set the local. But it does work.
SequenceContext.AspropertyObejct.SetValueVariant(variant, "Locals.ArrayofContainers",0)
Thanks,
Sathish
08-23-2011 08:41 AM - edited 08-23-2011 08:41 AM
Block diagrams and sequences are always handy to attach to help diagnose what's going on.
Have you tried getting a reference to the Local using the GetPropertyObject() and then calling the SetValVariant() method of the Local?
08-23-2011 09:03 AM
Asbo,
Thanks for replying. This is what I'm trying to do. See the attachements.
Thanks,
Sathish
You'll need TS 4.2.1 and LV 2010 to open these files