Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

generate PWM signal by using digital lines of NI PCI 6224

 

I am doing a project on Speed control of DC Motor. I want to use Labview to control the speed of dc motor. I am using NI PCI 6224 M card. It does not have ANALOG OUTPUT. It has just DIGITAL OUTPUTS.

 

I want to generate a PWM signal from labview by using digital output lines. This PWM signal will trigger the base of MOSFET/transistor. My issue is just that HOW I CAN USE DIGITAL LINES TO GENERATE PWM SIGNALS ???

 

Regards,
Ayaz

0 Kudos
Message 1 of 2
(3,783 Views)

Ayaz,

 

I recommend using a counter output instead of a digital output for PWM generation, as this provides much better performance and resolution while disburden the computer's CPU from an digital output task with high data rates. Please refer to the examples that ship with NI-DAQmx.

 

Please note, that this type of control doesn't provide an ideal method for velocity control. The PWM duty cycle is proportional to the current that the MOSFET drives through the motor. Current is proportional to torque. If you want to control the velocity precisely, you will need to do closed loop control with a feedback device like a quadrature encoder. This results in the necessity of deterministic software timing, which can't be accomplished under Windows.

 

There are a lot of threads in this forum about using DAQ devices for motion control tasks. Please refer to this thread as a starting point to learn about the requirements for such a setup and about alternative approaches.

 

Kind regards,

Jochen Klier

National Instruments 

0 Kudos
Message 2 of 2
(3,781 Views)