LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I specify a type descriptor when excuting the "Set Control Value" method of an invoke Node ?

I am trying to use Invoke Nodes to execute a VI. Therefore the first thing to do is to set the VI control values. There is where I find the first problem !

When I try to do this by selecting the "Select Control Value" Method in the Invoke Node one of the needed parameters is the TYPE DESCRIPTOR. I do not find any documentation on how to find /specify the correct type descriptor for my VI controls, so I can not continue.
0 Kudos
Message 1 of 5
(3,122 Views)
When you get to the block Diagram and view the methods of your Invoke node, and also have already chosen the "Type Descriptor" Method, Right-click on this method and select the 'Create Constant' option. Typically, an Integer Array will result. Note: this is an 'output' method, so you must right-click on the right side of the method - near its arrow. Also, the nodes are polymorhpic, and will change depending on the input values.
Good Luck, Doug
0 Kudos
Message 2 of 5
(3,122 Views)
First of all thank you very much,

I might expressed myself incorrectly, but my problem is when I try to set the value, not when I try to get the value. The problem is that I do not know the meaning of the values in the Type Descriptor Array.

Meanwhile I have fixed the problem passing to the Set Control Value Type Descriptor the Type Descriptor that I get when I read the value with Get Control Value. But still I do not know what is inside this array.

Thanks again.
0 Kudos
Message 3 of 5
(3,122 Views)
Not certain, but...If you can create an Indicator (right-click on the node and Create Indicator), then find this Array Indicator on your front panel, right-click in one of the array cells (Indicators) and check its 'representation' (perhaps they are Integer-32s or DBLs). Just experiment...
0 Kudos
Message 4 of 5
(3,122 Views)
The Set Control Value method, the input is a flattened string. Use the Flatten to String function from Functions->Advanced->Data Manipulation. The output from this function is the flattened data AND the Type Descriptor. Just wire them both to the appropriate lines in the Invoke Node.

I have attached my library of VI's for setting and getting values from other VI's front panels. Hopefully, these will get you up and running.
0 Kudos
Message 5 of 5
(3,122 Views)