10-12-2019 07:29 PM
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.
10-13-2019 05:26 AM - edited 10-13-2019 05:30 AM
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,