NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set Array of Containers

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

 

 

0 Kudos
Message 1 of 3
(3,614 Views)

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?

0 Kudos
Message 2 of 3
(3,609 Views)

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

Download All
0 Kudos
Message 3 of 3
(3,604 Views)