LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear indicators when called

Hi,

I am using LabView 7.1
I do not have RT installed.
When I go to VI Properties and in Execution, I select "clear indicators when called", the indicators in my vi keep the last value of the previous run, when I start a new run.

I know this is an issue with the RT module of LV7.1
Any idea why it doesn't work in my case though?

Jheffy
0 Kudos
Message 1 of 12
(5,149 Views)
Are the indicators in question in a subVI being called by a mainVI? Posting your code and explaning what your program is trying to do will help get you the answers you are asking for. 
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 2 of 12
(5,129 Views)
No, the indicators are in the main vi.
The code is attached.
0 Kudos
Message 3 of 12
(5,126 Views)
The reason these indicators are displaying the last value is the Shift registers are not being initialized. The shift registers will keep the last value until the VI is unloaded from memory. You must initialize them in order to have a known starting value.
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 4 of 12
(5,121 Views)
The problem is that the indicators "Rel. xy trans" and "Rel. z trans." must output the last non-zero value until another non-zero value is passed to them, and this while the vi is running. If I initialise them from outside the biggest while loop, then they get initialised every time the loop executes, which is not what I want them to do. I only want them initiliased at the end of the run (which I do with the reinitialize all to default method) and at the beginning of a new run. Is there any way to do that?

Thanks for the help!
0 Kudos
Message 5 of 12
(5,112 Views)
Here's how I would do it.
1. Remove the While loops inside the sequence, you have wired the stop condition to only run the loop once.
2. Place shift registers for the values "Rel. xy trans" and "Rel. z trans". on the outer while loop.
3. Wire a constent of zero to the outer shift registers.
 
This way the values will be held until you restart the VI. See image.
 
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 6 of 12
(5,108 Views)

Hi Andrew,

      We can't see the pick!  You'll need to make a GIF and "Insert Image".

Cheers

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 7 of 12
(5,102 Views)
Sorry, I'm still trying to figure this picture thing out. How's this?
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 8 of 12
(5,102 Views)
That does the trick, thanks.
0 Kudos
Message 9 of 12
(5,038 Views)
Nope - but closer.
Quick check Options - (top right of your post) If you can still Edit,
Insert an Image - and get the URL from properties of GIF (right-click on its hyperlink)
I think normal procedure is to attach GIF, submit post, then Edit (but Edit is only available for about 5min)
... sorry for poor (original)  explanation!
 
cheers

Message Edited by Dynamik on 11-16-2005 12:45 PM

Message Edited by Dynamik on 11-16-2005 12:46 PM

When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 10 of 12
(5,083 Views)