Referring to "array of controls" topic, i guess that's what i get for not
fully testing my code.
🙂 It worked but i never compiled it. Anyway, i came
up with a different solution for Antonio and emailed it to him because he
doesn't have 6.0. In 5.1 I used invoke node, setting the "VI server class"
to VI and selecting "set control value" from the list of methods. This will
set the control to any value, not just default. To set the control to default,
i right clicked and selected "create constant" on the control on the diagram.
I did this while the control was in the default state. Use flatten data
primitive to wire the constant into the node. For the type descriptor element,
i used "get control value" and just wired the output to the input.
I compiled it t
oo and it works!!
Want a copy of this code? email me. I'm posting from NI's website and i
can't include a file in this post.
Jared
"Eric Poirier"
wrote:
>There is a way to set an array of controls to default (or to false in case>of
boolean control) whitout using the reference and method describe in the>"Array
of controls" topic. Because it can't be used when the VI is compile>sa an
Application.>>Please help me!>thanks>>