08-17-2009 01:46 PM
I am using a stepper motor that changes direction during the execution. I currently have a Boolean control that sends a digital output to the proper port of the controller to reverse directions. I do have to, however, switch the Boolean from "true" to "false" or vice versa after every run so the motor knows to reverse the direction. Is there a way to code this into my VI? I basically just want my VI to understand what the Boolean is set to and at the end of the execution switch the value of the Boolean to the opposite value. If my code is needed it can be provided.
Emily
Solved! Go to Solution.
08-17-2009 01:54 PM - edited 08-17-2009 01:56 PM
08-17-2009 01:59 PM
I appreciate the fast response, but I am unsure how to proceed even with the advice. I have attached my code...maybe you could be more specific? My boolean operation occurs in the 2nd sequence.
Thanks,
Emily
08-17-2009 02:33 PM
Sorry I only have LV8.2, you could post a version saved for this, or my guess is that with code posted there are plenty of people who could help you very quickly.
Here is an example of the two methods I described. The while loop with shift register is a bit more general, I use it when I want a value to be "remembered" when I run the VI again.