NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Enqueue an element in the "DialogRequestQueue"

Solved!
Go to solution

Hi, I am developing in LV 8.6 a new Operator Interface for TS. I would like to emulate some function of the modelsupport2.dll.

When the user press the Start button the OI should enqueue a new ControllerRequest cluster type. I developed a couple of VIs in

order to enqueue and dequeue element into a TS queue, but they work only for string, numeric and boolean. How can I equeue that

cluster?
I went thru the modelsupport2.dll but I cannot grab the meaning. It change the value of the ControllerRequest cluster using the

TS_ProrpertySetVal and not using the queue. Then add an element in order to set Timeout Occurred to false.

 

Thanks for your support.

0 Kudos
Message 1 of 4
(3,542 Views)

A couple of changes in the picture.

0 Kudos
Message 2 of 4
(3,541 Views)
Solution
Accepted by topic author logatto

Ciao Logatto,

 

if you want to enqueue a cluster into a TS queue from LV, first you must create a new PropertyObject with "PropValType_Container" as data type. Moreover, you have to add each cluster element as a new SubPropertyObject associated with the "main" PropertyObject.

 

The example you posted only created the "main" PropertyObject associated with the container itself (that is, a LV empy cluster) without adding any SubProperties to it.

 

I've modified your exampled by adding subproperty creation into the LV code module. It should work as expected now.

 

Hope this helps,

 

Fabio

Fabio M.
NI
Principal Engineer
0 Kudos
Message 3 of 4
(3,498 Views)

This is exactly what I was looking for. I should had to make a step down into the subproperties.

I know that is not strictly related with this post but the example you attached works whether I use the vi as an action in a TS sequence. I mean, in your example I need to get the sequence context directly from TS. I would like to run it stand alone getting the sequence context using TS APIs. 

This is the same issue I am dicussing into another post "Seq context in multiple executions ". No solution till now.

 

Thanks a lot for your support.

 

 

0 Kudos
Message 4 of 4
(3,487 Views)