LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting two vi's together to form a main vi

What I am trying to do is incorporate a switch into my stepper motor.vi that will change the direction of the motor from clockwise to anticlockwise or vice verca.

The stepper motor vi works fine driving the motor in one direction but I am having trouble with the directional control. Any ideas how to incorporate them?

I have a smilar VI for the clockwiseanticlockwise switch that just sends a digital signal telling the direction to change.

Any help would be much appreciated, thanks.
Download All
0 Kudos
Message 1 of 2
(2,513 Views)
Hello
The thing you need is a Select statement ( in comparison palette) This will send the Clockwise stuff OR the ACW down the wires to your digital writes. Make sure that the boolean is read each cycle, think about where to put it.
Very important! Put a delay in the free running while loops, this will use up all the computing power of the machine and in the case of the zero case loop not achieve very much. Good luck
Yours Sincerely
John Brohan www.tradersmicro.com
0 Kudos
Message 2 of 2
(2,513 Views)