LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView/Arduino Stepper Motor; Stop motor after x steps command

Hello Community,

  I am new to using labview, so if this post is in the wrong place I am sorry. 

I am using labview to communicate with an arduino-based stepper motor, and I have all the programming completed (pictures attached). However, I need the motor to stop after a certain number of commands. I need this "stop after x steps" to be done through labview, does anyone know how I can set this up?

Thanks,
STM_Chase

Download All
0 Kudos
Message 1 of 2
(3,171 Views)

If you had attached your actual VI, instead of a picture of your VI, we could see more details, and could even return you a slightly edited version ...

 

Instead of thinking "Stop after N steps", how about thinking "Loop for N steps"?  Notice the second word in "Loop for N steps" -- does this make you think of any LabVIEW structure?  (Open a LabVIEW Block Diagram, right-click to bring up the Palettes, look in the Structures Palette, the first one, and see if inspiration hits you).

 

I take it you have not spent time with the "Getting Started with LabVIEW material mentioned on the first page of this Forum.  I strongly recommend you spend some time with them -- learning some things before you start coding is always a Good Idea.

 

Bob Schor

Message 2 of 2
(3,056 Views)