Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

permanent square signal

Hi all,

I am working with the PCI 6221. I am using it to generate a square signal of a determined frequency. The problem comes up when the computer where the DAQ is plugged into becomes unstable, freezes up,... then i think that the DAQ stops generating the signal. Is it possible????

Is it possible to make the device independent???, i mean something like to save the instructions inside the board and make it not depend on the state of the computer. I am generating the signal with:

                      DAQmxCreateTask("",&taskHandle);
        DAQmxCreateCOPulseChanFreq(taskHandle,device + "/" + counter,"",DAQmx_Val_Hz,DAQmx_Val_Low,0.0,Frequency,DutyCycle);
        DAQmxCfgImplicitTiming(taskHandle,DAQmx_Val_ContSamps,1000);
        DAQmxStartTask(taskHandle);



Thank you beforehand

JRF



0 Kudos
Message 1 of 3
(3,518 Views)

Hi,

I will take a look to this example about Continous pulse train generation that cames with the NIDAQmx driver and CVI 

C:\Program Files\National Instruments\CVI80\samples\DAQmx\Counter\Generate Pulse\Dig Pulse Train-Cont

That will be useful for u directly as application or as guideline about how to make yours,

Hope that helps,

 

Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 Kudos
Message 2 of 3
(3,507 Views)
Gracias Jaime,

I had a look at those examples long time ago and just from your reference it is where I took the code i posted. My PATH is a little bit different but i hope the examples are the same (C:\Archivos de programa\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Generate Pulse\Dig Pulse Train-Cont), this means my examples are in C, i couldnt install solution for visual studio 8.0.

Getting to the point, with this solution you are pointing to me I think it is not possible to make the task independt on the computer where the DAQ is plugged into. That means that if for some reason, the computer is "frozen" the task could stop...

Thank you anyway!!!

Jrojfer
0 Kudos
Message 3 of 3
(3,499 Views)