LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control 2 motors

Hi Gerd,

 

I think he wants to move the X axis motor and the Y axis motor simultaneously.

 

The problem with that is by the looks of thing he has 2 DAQ assistants in the one while loop so I am guessing they wont run in parallel.  Whats need is a multifunctional DAQ type OP which OP's both signals at the same time.  In order to do that you will probably have to move away from the DAQ express vi's and look at some of the DAQ examples for multiple analogue OP etc.

 

Edit: Scratch that, I am even more confused after reading it the second time :s

 

Craig

Message Edited by craigc on 08--03-2010 04:36 PM
LabVIEW 2012
0 Kudos
Message 11 of 15
(687 Views)

hi craigc

 

what you said exactly what I want

I want to move x and y simultanusly

I will try to find multifunction DAQ

thank you

0 Kudos
Message 12 of 15
(683 Views)

Please any help

until now i didn't find the solution

 

😞

 

thank you

0 Kudos
Message 13 of 15
(653 Views)

Try to get rid of the express vis.

init the joystick and one DAQ task outside the loop

read the joystick and calculate the needed output to the DAG

write the DAQ output 

 

close the DAQ after loop finished

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 14 of 15
(650 Views)

Hi,

     First of all like you mentioned in your first post that only one moor ( X axis) works and the other ( Y axis ) doesn't work. Could you interchange the motors and see what the results are? ( I assume you would have tried that out already) If working fine, could you wire programatically the X input to Y and vice- versa?

Well, you can also simply add channels in one DAQ assistant for multiple analog output generation. Also as requested , post your VI?  and let us know how exactly you are controlling the motor ie.do you have drives which work on the analog signal they recieve etc?

Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 15 of 15
(627 Views)