LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Single shot action with Radio Buttons

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

0 Kudos
Message 1 of 2
(2,381 Views)

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.

 

NI Learning Center

NI Getting Started

-Hardware Basics

-LabVEW Basics

-DAQ Application Tutorials

 

3 Hour LabVIEW Introduction

6 Hour LabVIEW Introduction
Self Paced training for students
Self Paced training beginner to advanced, SSP Required
LabVIEW Wiki on Training

0 Kudos
Message 2 of 2
(2,362 Views)