08-05-2010 02:26 PM
I know ther are many suggestions offered on this forum of how to clear indicators every time a program runs. I have tried everything that I have found on this forum site. I really need some help here. I thought going to VI preferences, then execution, then clear indicators when called would do the trick...but it doesnt work.
I am posting my code. I know it is poorly written, but my only priority right now is to get the indicators to clear. Any help would be appreciated!! Kudos for all.
Solved! Go to Solution.
08-05-2010 02:34 PM
08-05-2010 02:37 PM
I have tried that solution. It did not work for me.
08-05-2010 02:42 PM
You have not set 'clear indicators when called' or used the property node. When I set 'clear ...' and run your VI it does clear then indicators. If you are going to say that you tried something, post the VI where you actually show that you did try.
08-06-2010 09:15 AM
I have checked off that property in the preferences, but I still cannot get them to clear when I run them. Do I need to wait a longer amount of time before the values clear (other than a few seconds)? The values where it says "Max Force", "Min Force", "Max Distance", and "Min Distance" do not clear when I stop the program and run the program again. The same values from the last time I ran the program continue to be there.
I even added another way to set them to zero (reinitialize to defaults). It still does not work. Do my defaults change every time the program runs?
08-06-2010 09:27 AM
Your values clear when I run your program.
I think your problem may be that you are using uninitialized shift registers. Actually, in this case uninitialized feedback nodes. The feedback nodes hold the values from the last run of your program, and are then quickly repopulating your controls.
Wire up some constants with default values to the initializer terminals of the feedback nodes.
08-06-2010 12:37 PM
How can I do that? Do I wire constants to where data initially goes (on the dynamic data) in the consumer loop?
Sorry, I am new to LabVIEW so I am not 100% with all the lingo.
08-06-2010 01:15 PM
Right click on the initilizer terminal (looks like a star) and select Create - Constant. Then type in some value, like 0. The star changes to some funny shape as shown below:
08-06-2010 01:26 PM
All you guys are awesome! Thank you so much!