NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

teststand and labview queues

All,

Can someone tell me how to enqueue data to TestStand queues from LabVIEW?  Thanks.

PS:

In TestStand sequences, I created queues, and then wait for retrieving data from the queues which LabVIEW vi enqueues its data.

 

 

0 Kudos
Message 1 of 2
(1,644 Views)

Hi Danny,

 

You have to handle the TestStand Queue from the "LabVIEW context".

 

This is doable by getting a reference to the SyncManager (you will have to get the returned variant as SyncManager reference, using variant to data and the appropriated constant). The method is related to the Engine. From this reference, you can the call the GetQueue method, with the name of the expected queue as argument.

 

Then, you can call the Enqueue method on this Queue reference - it's very similar to the step configuration in TestStand sequence editor. One of the difficulty is to build the newElementPropObj argument from LabVIEW, before setting value(s). Basically, use the Engine reference and using the NewPropertyObject method. If you have a container as queue element, a named type may be welcome.

 

Hope this helps,

0 Kudos
Message 2 of 2
(1,596 Views)