Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

changing the duty cycle when running (linux)

Hi,

i want to programm a pwm signal with the NIDAQmx(1.5) linux driver. I use the example "genDigPulseTrainCont.c" (in example dir from driver). Now i want to change the duty cycle while the application is running. I found an Example here http://forums.ni.com/ni/board/message?board.id=250&message.id=11463&query.id=67808#M11463 .
In this example(for LabView) is an DAQmxWrite.vi used. But i dont find such an function in the NIDAQmxBase.h (from driver) so i cant do it so. There is an other example(CVI_PWM.zip). In this example is an function DAQmxWriteCtrFreqScalar(..) to change the frequenz and duty cycle, but this function don't exist in the NIDAQmx driver (undefined reference to `DAQmxWriteCtrFreqScalar').

How can i change the duty cycle while the application is running (with DAQmx linux)?

thanks
Stefan
0 Kudos
Message 1 of 2
(3,193 Views)
hi myazo,

which hardware do you use? the DAQmxBase driver doesn't support property nodes. with this you would have the possibility to change the duty cycles.
I'm sorry but for the moment I don't see a chance to change the duty cycle with DAQmxBase while the program is running.

greets
0 Kudos
Message 2 of 2
(3,185 Views)