08-24-2016 11:34 AM
Hello,
I am using USB-6218 to drive a current source and read voltage across the shunt resistor in my circuit. In order to run things safely, I wanted to make sure that when I stop my 'voltage on demand' vi, I set the current to 0. For this, I tried using the Flat Sequence (find attached vi), but my program never leaves the first frame, even after hitting the stop button on my Front Panel.
Can someone help me with this?
Thanks,
Katarina
Solved! Go to Solution.
08-24-2016 11:52 AM - edited 08-24-2016 12:03 PM
In order to go to the second frame, both subVIs need to terminate. Are you stopping both? (It looks like they are not even configured to show the front panel, so how are you actually stopping them?)
Maybe you should handle the resetting to zero right inside the subVI after the while loop, for example.
08-24-2016 11:55 AM
The value of Stop inside the subvi doesn't change and the loop is running continuously.
-Suggest you to check this example: http://www.ni.com/example/28769/en/
08-24-2016 01:15 PM - edited 08-24-2016 01:16 PM
Your VI's inside the first frame will NEVER stop running, because when the VI starts it uses the input conditions that are set.
Once those vi's are running VI's are running their internal loops they can not "see" anything that happens outside of their respective loop, like the stop buttons on your SequenceTest panel changeing states.