LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can't write to strict typedef with Control Value:Set [Variant]

Hey everyone,
 
I inherited a project that uses stacked strict typedefs for the front panel, and I need to programmatically change one control, and it is within an event.  However, the control is a strict typedef in a strict typedef, and Control Value:Set [Variant] has no effect on the specific control.  I have gotten the method to work in small test vi's without typedefs, so I'm pretty sure that is the problem.
 
The only thing I can think of is that there is a unique way of referencing the control name through typedefs, and I don't know it.
 
Any ideas?
 
Thanks in advance,
 
Jeff
0 Kudos
Message 1 of 3
(2,711 Views)
Jeff,

A property node created for the control you want to change should work. I have used them to set elements of typedefs within typedefs.

Obtaining such a property node programatically can be complex. You may need to use the To More Specific function to obtain the references needed.

Lynn
0 Kudos
Message 2 of 3
(2,698 Views)

Lynn,

Thanks for the reply.  It turns out that to programmatically Control Value:Set [Variant] bundled controls, you can only pass in the top level bundle control name.  It took some tricky placement around my structures, but I eventually unbundled and bundled by name from the top level down to the bottom and back up to make it work.

 

Thanks again

 - Jeff

0 Kudos
Message 3 of 3
(2,684 Views)