09-04-2008 06:36 AM
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
09-16-2008 05:26 AM
Could you please attach the DAQ-part of your code? It will be easier to help you out.