10-19-2016 10:52 AM
Hello,
I am using LabVIEW 2013. Attached is my VI. I am sending in a "Curr. TestPlan Row" random numbers at random times. I am wanting it to retain its last number whenever this VI is not being called, and then reset the value to it's new value whenever the VI is called again and a new number has been sent. Also attached is a screenshot of when the VI is called.
Please note, I cannot use a WHILE loop, so it has to retain its value a different way...
Thanks in advance for any help!
SM
Solved! Go to Solution.
10-19-2016 11:05 AM
Im not sure why you cant use a while loop, its possible to have a loop iterate one time and use a FGV. I attached a link for this.
You can also use a config file to do this.
https://decibel.ni.com/content/docs/DOC-2143
10-19-2016 11:12 AM
Matt,
I can't use a WHILE loop for several reasons. What about a FOR loop?
Thanks,
SM
10-19-2016 11:13 AM
Maybe a feedback node?
10-19-2016 11:15 AM - edited 10-19-2016 11:17 AM
There is nothing wrong with a while loop if it iterates only once and used as scaffold for an unititialized shift register. You can also use a globally initialized feedback node, which does not need a while loop.
This entire subVI makes no sense. This is just a continuation of your old thread, banging your head against the same concrete wall. You are digging yourself into a deeper hole again.
10-19-2016 11:27 AM - edited 10-19-2016 11:27 AM
Kyle,
I think a Feedback Node is exactly what I was looking for! Now I just got to figure out how to implement it for my "Curr. TestPlan Row" number properly...
10-19-2016 11:45 AM
Matt,
Could you elaborate on the config file? Such as the name of the function so I can look it up or something?
Thanks,
SM