08-22-2015 10:37 AM
@Yamaeda wrote:
@danielepirovano wrote:
The subVi is in a case structure, the subvi starts to run when I change the control of the case structure to true. The subVI runs until I change the control to false.
There are no loops and no shift register in my VI. The "reset signal" is connected to a series of logical controls of the data processor.
Reset the SubVI in the false case. Problem solved. 🙂
/Y
I think you are trying to answer the original thread from 2011, while we are now dicussing something quite different. There is no case structure.
08-22-2015 08:55 PM
Hi Altenbach,
Thanks for all your prompt feedback and reply.The VI is poorly designed as it is a compilation of methods that work. Unfortunately I am unable to devote time to optimize my program.
I am currently trying to improve this VI based on your comments, but I am held up by other projects so I may take a while before I can see if the solutions work. But back to my main question, is there a way to clear the uninitialized shift register "other than the add a constant" solution; even quitting the subVI after it returns to caller is acceptable to me. Otherwise, my current solution is to quit the main VI after each run.
08-22-2015 10:05 PM
@Oldcreek yes i was. 🙂
A shift register is typically reset by feeding it the reset value from the inside. If you dont have a case structure inside the while loop you can solve it with e.g. a Selector (or depending on structure by indexing out a default/reset value).
/Y