10-14-2014 02:06 PM - edited 10-14-2014 02:09 PM
Hi everyone I'm new on labview programming, and I have no idea how to solve this problem.
Basically I want to move a stepper motor with a pre defined positions wich the user will select only one at the time, but when the position is selected its inside a case structure, the loop inside of it should occur just one time for each button pressed, otherwhise the stepper won't stop moving, and I need it to work inside a while loop, I've tried to use the first call function but it need's to stop the main vi to reset it, it works but it's not what I'm looking for.
Thanks
10-14-2014 03:54 PM
You could use an event structure, which only gets activated on the event of a value change on the radio button. Also you should never stop a VI using the abort VI button. This is like stopping a car by crashing into a tree. If you use the event structure you can have an event on Panel Close which gets activated when the user hits the red X in the corner. There you can have you code stop safely.
Here is some free training if you are interested in learning LabVIEW basics.
6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord