05-15-2013 06:54 PM
Hello everyone.
I am an Arduino with LABVIEW to control a stepper motor. The problem I am having is having the stepper motor execute multiple commands one after another. For example, if I tell the stepper motor to turn left and then right, the motor will only turn right. I tried using a flat sequence structure, but that didn't work. I sort of solved my problem with wait timers but I need the motor to act as quickly as possible. Thank you for your help.
jon
05-15-2013 07:38 PM
put your controls in an event structure...
05-15-2013 07:50 PM
Thank you your reply. I see how that would work if 1 event told the motor to turn 1 way, but some of the events I am using require that the motor move right and left multiple times. Correct me if I misunderstood something.
05-15-2013 07:55 PM
each control goes into an event case structure....forward,reverse,left,right,stop(4x event case statements).
side note: i also use an event case structure value change for my digital pot that i control with the arduino.