Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

make continuous digital output?

Hello,

 

I have a problem making a continuous digital output signal using the usb 6229 oem DAQ card. 

 

I make a continuous pulse train with aid of a counter and I use this pulse train as a sampling clock to write a digital line using the function DAQmxWriteDigitalU32. The problem I have is that the signal I write to this line is not continuous but stops after a certain fixed time. It seems that the write task ony writes the samples a finite number of times instead of doing it continuously. Does anyone know how to solve this problem?

 

The pulse generation: 

DAQmxCreateTask 

DAQmxCreateCOPulseChanFreq (ctr0)

DAQmxCfgImplicitTiming (continuous sampling)

 

The write task: 

DAQmxCreateTask 

DAQmxCreateDOChan

DAQmxCfgSampClkTiming (ctr0 as sampling clock), continuous sampling)

DAQmxWriteDigitalU32

 

start write task 

DAQmxStartTask

start pulse generation task 

DAQmxStartTask 

 

The pulse train is continuously generated, but the digital output is not. 

 

Thanx,

 Bert

0 Kudos
Message 1 of 2
(2,961 Views)

Could you please attach the DAQ-part of your code? It will be easier to help you out.

Best Regards

Michiel
Applications Engineer
NI Belgium
0 Kudos
Message 2 of 2
(2,895 Views)