PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to generate a PWM signal to control a dc motor using a DAQ NI 6229 and host computer running LabVIEW 8.20

i want to generate a PWM signal to control a dc motor using a DAQ NI 6229 and host computer running LabVIEW 8.20 the signal i want to generate should have a freq of 52.08Hz and a Duty Cycle of 0.07 how can i get this done and the i want the signal output in ctr0  out in my SCB-68
0 Kudos
Message 1 of 4
(4,035 Views)
Hi Kenny,

Have you tried any of the DAQmx examples? Try starting with the Gen Dig Pulse Train Continous.vi and change the frequency and duty cycle by writing to a DAQmx Channel property node. The properties are under counter output>>pulse>>frequency.

Regards

Jon B
Applcations Engineer
NI UK & Ireland
Message 2 of 4
(4,030 Views)
Hi,

This example is great. Could you help me , how can use it to change the duty cycle continously? Because here it can use only fix settings.

thx,
Bird

0 Kudos
Message 3 of 4
(3,639 Views)
Hi Bird,

Please can you try the attached code and see if it works for you. I have moved the duty cycle control inside an event structure in the while loop, so when the value of duty cycle changes, we can update a property node that should update the pulse out specification.

Regards
JamesC
NIUK and Ireland

It only takes a second to rate an answer 🙂

Message 4 of 4
(3,613 Views)