01-21-2009 10:26 AM
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.
Solved! Go to Solution.
01-21-2009 10:40 AM
A couple of changes in the picture.
01-25-2009 03:41 AM
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
01-26-2009 05:15 AM
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.