LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb ni 6009

Solved!
Go to solution

Bonjour à tous!

Je voudrais savoir: comment crée-t-on 1 interface de commande d'un moteur pas à pas sous Labview en utilisant la carte USB NI 6009?SVP.

 

0 Kudos
Message 1 of 7
(3,843 Views)
Solution
Accepted by DAM'S501

Hi DAM,

 

there's a forum for French speaking people, you might ask over there. This forum prefers English…

 

You could control your motor using an USB6009, but I suggest to use a special controller board suited for the motor. Usually you can set motor speed and direction using simple analog/digital signals with such motor controllers!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,833 Views)

hi GerdW,
Thank you very much for your idea is a good suggestion.

But my project requires to use the USB card NI 6009, and build the control interface Labview.

0 Kudos
Message 3 of 7
(3,708 Views)

If those are your constraints, then you must tell us more or the details to get help.  The USB-6009 cannot run a motor directly because it does not generate enough power.

 

Please tell us the type of motor, the voltage and current requirements, what about the motor you want to control (speed, position, acceleration, ...), what kind of sensors will be used for feedback, what the user inputs will be, what will be done with any data recorded, and so on...

 

Also, tell us what you know how to do and what is causing you problems. Please be as specific as possible. Posting the code you have tried along with what does not work about it is very helpful.

 

Lynn

0 Kudos
Message 4 of 7
(3,673 Views)

First, the engine is an engine that I just recover in a printer, the serial number is C9045-60005, its voltage is 3V and the current 0.99 A. And about my program, I do not know how to begin; speaking of Labview, I am only a beginner. But the goal is that I must create a control interface from the NI 6009 USB card that happen to control this engine after that we will move into a small vehicle.

0 Kudos
Message 5 of 7
(3,542 Views)

If you've read the datasheet for the NI-6009 you will see that it has some analogue outputs (0-5V) and digital outputs (open collector with 8.5mA limit or 3.3V active drive) which you can use to interface with an external motor control board or circuit. The NI-6009 cannot provide enough current to drive the motor directly so you will need an additional circuit/supply - it's designed as a measurement device!

 

Ideally, you would want to use something like PWM to control the motor speed but the NI-6009 cannot do high-speed PWM output - only software-timed output which may limit the effectiveness of the PWM.

 

So your circuit will need to take a 0-5V analogue input (and perhaps a digital input to set the direction) and convert that to a 3V PWM signal that can supply 1A of current.

 

To be honest, the NI-6009 isn't really suitable and I'd be getting an Arduino (perhaps with a Motor Shield) and controlling it from LabVIEW using the LINX toolkit (which allows you to control an Arduino through LabVIEW).


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 6 of 7
(3,530 Views)

Some printers use stepper motors.  If your motor is that type, you need a driver which matches the motor circuit type. To tell the motor to take a step specific windings need to be switched on and off in a specific sequence. The digital outputs of the USB-6009 could be used for this, although the maximum speed will be low.

 

Lynn

0 Kudos
Message 7 of 7
(3,506 Views)