LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

retriggerable counter

Hello

I am trying to do retriggerable pulse generation using a NI-6024E with labwindows and NIDAQmx(7.3)
The problem is that my pulse is only generated once.
I have configured my task as follows:

DAQmxCreateTask("",&ghCountTask);

DAQmxSetStartTrigRetriggerable(ghCountTask,TRUE);
DAQmxCreateCOPulseChanTime(ghCountTask, "Dev1/ctr0", "", DAQmx_Val_Seconds , DAQmx_Val_Low , 0.5, 0.001, 0.001);
DAQmxCfgDigEdgeStartTrig (ghCountTask, "/Dev1/PFI9" , DAQmx_Val_Rising);

DAQmxStartTask(ghCountTask);

I send digital pulses on PFI9 at a rate of 160Hz

It seems that the trigger is not armed after the generation of the first pulse although it should stay armed
according to the message from chad:
http://forums.ni.com/ni/board/message?board.id=40&message.id=1465&query.id=4166#M1465


Thanks, raph
0 Kudos
Message 1 of 2
(2,827 Views)
I had a light version of my project, so that you see what i am trying to do
0 Kudos
Message 2 of 2
(2,786 Views)