04-22-2014 02:29 PM - edited 04-22-2014 02:29 PM
Hi all,
Is there a way to clear a string/text box and dropdown menu(enum/ring ) selection every time the subvi which contains these controls runs.
Thanks,
Solved! Go to Solution.
04-22-2014 02:35 PM - edited 04-22-2014 02:36 PM
look into the property nodes of those controls and programically clear them outside your loop
04-22-2014 02:39 PM
@apok wrote:
look into the property nodes of those controls and programically clear them outside your loop
Hi apok,
which method of property node? you meant "Value" , but how to reset the value of these controls?
04-22-2014 02:40 PM - edited 04-22-2014 02:40 PM
04-22-2014 02:43 PM
@GerdW wrote:
Hi Ankit,
you can set the desired values as default for those controls, then LabVIEW will handle that "clearing" for you…
Hi GerdW,
Thats the problem , I have a subVi with these controls in my main Vi, and I want to get clear text boxand unselected dropdown every time my main vi calls the subvi. I did have blank as an default but once selected or input some text in it the next when that subvi is called it have those previous selection or text in it which I dnt want , how to get rid of those previous values and provide fresh text box and drop down value to the user
04-22-2014 02:47 PM
Hello AnkitG,
It sounds like you're looking for the Reinitialize to Default method, which can be used either on the VI as a whole or a single control or indicator. This KnowledgeBase provides more information on the topic:
http://digital.ni.com/public.nsf/allkb/08E7DDAE66A7D02C86256DDA00630E75
There is also a community example linked to that page that demonstrates the use of the methods.
Regards,
04-22-2014 02:56 PM
@0utlaw wrote:
Hello AnkitG,
It sounds like you're looking for the Reinitialize to Default method, which can be used either on the VI as a whole or a single control or indicator. This KnowledgeBase provides more information on the topic:
KnowledgeBase 339B1U3E: How Can I Programmatically Reset All the Controls on My Front Panel?
http://digital.ni.com/public.nsf/allkb/08E7DDAE66A7D02C86256DDA00630E75
There is also a community example linked to that page that demonstrates the use of the methods.
Regards,
Thanks outlaw, will try to use this.
04-22-2014 03:06 PM - edited 04-22-2014 03:06 PM
Hi Ankit,
I have a subVi with these controls in my main Vi, and I want to get clear text boxand unselected dropdown every time my main vi calls the subvi.
You need to connect those controls with your connector pane and do not wire anything to them in the main VI…