NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you pass a container of objects from TestStand to LabVIEW using sequence context?

Hi all

 

In TestStand I have a container of objects that are the hardware on this test system. Ideally I would like to pass this container into the LabVIEW steps via the sequence context. However I am struggling to achieve this. Does anyone have any ideas?

 

Many thanks

Dave B

0 Kudos
Message 1 of 2
(4,075 Views)

You have to get each subproperty programmatically using the PropertyObject TestStand API.

 

For example:

 

double mynum = SequenceContext.Locals.GetValNumber("mylocalVariable.subproperty1", 0)

string mystring = SequenceContext.Locals.GetValString("mylocalVariable.subproperty2", 0)

 

If you want teststand to convert a teststand data structure into a cluster, then you need to use parameter passing rather than the sequence context. Create an control on your front panel for your cluster and make that an input on your connector pane.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 2
(4,060 Views)