02-13-2016 07:25 AM
I thought there was such a method, but when I looked for it, I didn't find it ... I agree that it is otherwise "major overkill" ... At least my Post got you to post a "better solution" ...
BS
02-13-2016 07:47 AM
@Bob_Schor wrote:At least my Post got you to post a "better solution" ...
But the "best" solution is to enable scripting and then use the Default Value property and shown in the second message of this thread. I just tested it and the read does work in an executable.
02-17-2016 05:46 PM
Both solutions look good.
Read Control, Reinit To default, read control, restore from 1st read.
Is 3 steps from being simple, but much better than Reinit All.
Scripting DefVal
It appears simple but needs suporting steps, open ref, close ref.
Under the hood coding is likely larger and slower.
BTW: I took a quick look at the scripting tutorials, but they all open with NewVI. Crossrulz do you have a larger snippet?
02-17-2016 06:37 PM
Pappion wrote: Crossrulz do you have a larger snippet?
What I gave you already is all you need. It is an explicit reference to the control, so no need to open or close references. And I did test it in an executable and READING of the default property works. You just can't WRITE to the property. Just dig into the options dialog in the VI Server catagory and enable scripting and you can access the property.