06-08-2011 01:04 PM
Hello,
I have some data being generated in a "True" section of a case structure and I feed them out of the case to some indicators (and saving in some Excel files). But Labview gives me error that I should connect something for the other case, so I just gave some zero input.
However I need to HOLD the data outside of the case structure until the case structure is "True" again and then update the data.
My code is a little large and I guess I should not give it out, so I cannot upload it.
Thanks,
Baran.
06-08-2011 01:15 PM
You need your case structure inside a loop with shift registers on the loop which pass data from one iteration to the next.
06-08-2011 01:15 PM
You may need a shift register. Pass the data through the false case. That will hold the old data.
Lynn
06-08-2011 01:18 PM
Can you try to make a small vi demonstrating your question/problem?
06-08-2011 01:18 PM
Thanks.
I actually did that. But that will keep the data for one more loop and the next one is the zeros that is coming from the other case.
06-08-2011 01:24 PM
Do what johnsold said... Don't make it a zero, pass the wire through the false case.
06-08-2011 01:30 PM
Here is an simple example.
When the Read is pushed, the indicator should show the control value. But when the read is not pushed I want the indicator keep the last values of control before the Read button is released.
Thanks.
06-08-2011 01:36 PM
Oh the shift register works now! Thanks.
I guess it was not working well because I was just using one shift register for testing while I had two arrays, and it was mixing the two arrays.
06-08-2011 01:40 PM
I am a Feedback Node fan myself.
06-08-2011 01:41 PM
Sometimes it is sufficient to simply place the indicator and save operations also inside the same case structure. No extra code needed. 😄