LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Single Commands to a Motor from within Loop (SoftMotion)

I need to send out single commands to a motor to move to an absolute position ('move to X revolutions'). This command would come from a state machine (within a master loop). From within this main loop, right now I'm queueing up this value/command 'X' and the queue is released/de-qeueud outside of the loop where the value is fed to the motor.

 

Trouble is the queue gets filled up with the same value, since I'm writing this command from within a state machine loop. This forces me to use absolute position control (not relative) and also I need to flush the queue every time the motion is complete.

 

Can someone offer their help with this issue? Is there a wider architecture problem with this arrangement? I've attached the subVI that would handle the motion control. The input is the queue, which comes from an external loop.

 

(NOTE: this is a copy of another thread that was posted in the wrong forum. I have since asked that thread to be deleted)

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