02-28-2013 03:06 PM
Hi All,
I am very new to LabVIEW so I hope I am able to make the following question clear.
I attached a picture of the structure I am having trouble with below.
The structure preforms as I need it to in that is is able to calculate and return an average value when I turn on the control.
I have my Boolean control set to "latch when released" so that the case preforms its averaging purposes and then presents the average as "force zero value" (and does not continue averaging entries of the arrays).
This value displays, as I want it to, as soon as the case is run; however when the case is false, (imediataly after clicking "zero force"), the value returns to 0 because the case is off.
How can I "store" the force zero value that is calculated when I run the case structure so that I can use that value elsewhere in my VI.
I really appreciate any help; if I am going about this problem a completely rediculous way, please let me know.
-Mike
02-28-2013 03:10 PM
I have read about "Shift Registers" and spent some time trying to use a For Loop to complete this task.
However, I was not able to get that to work either, and ended up with similar problems.
If Shift Registers would be more helpful for this sort of problem, could someone provide a little information about how they work, or direct me to a tutorial that might help.
Thanks again
02-28-2013
03:40 PM
- last edited on
05-01-2025
10:45 AM
by
Content Cleaner
Shift Registers: Passing Values between Loop Iterations - LabVIEW Help
I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours
03-01-2013 12:40 PM
You could also just put your Force Zero Value indicator inside of the TRUE case....
03-01-2013 01:08 PM
PackerFan is right, if you don't need that value later in your program, just put that indicator into the True case. If you need it later, maybe local reference is a good way how to achieve it.
03-01-2013 02:53 PM
Yeah, the problem is that values need to be continuously compared using this zero value. The best solution I could find is wire it to the opposite case so that it reads out always and then manually enter it into a numeric control and use that.
I was just wondering what a more elegant solution might've been. I will look into local reference. Thanks guys!
03-01-2013 03:31 PM
The correct answer is to use a shift register.