09-09-2005 08:28 AM
ret = DAQmxCreateTask("",&task_);
errorMsg(ret);
if (ret != 0)
throw ret;
// Configure the counter
ret = DAQmxCreateCOPulseChanTicks( task_,
"Dev1/ctr0", "", "/Dev1/PFI8", DAQmx_Val_Low, 0, divider, divider );errorMsg(ret);
ret = DAQmxCfgImplicitTiming( task_, DAQmx_Val_ContSamps,
1000 );errorMsg(ret);
// Change to pulse moderet = DAQmxExportSignal( task_, DAQmx_Val_CounterOutputEvent,
"/Dev1/Ctr0InternalOutput" );errorMsg(ret);
// Start the counterret = DAQmxStartTask(task_);
errorMsg(ret);
/////////////////////////////////////////////////////////////////////////////////////////
The above code works fine, in toggle mode, if I just comment out the DAQmxExportSignal() part.
HELP!!!
Stefan
09-12-2005 08:38 AM
09-13-2005 05:34 PM
09-14-2005 07:07 AM
ret = DAQmxSetExportedCtrOutEventOutputBehavior( task_, DAQmx_Val_Pulse );
Then when I start the counter it will be in pulse mode.
My only question (and it's really a gripe) is where in the documentation is this golden nugget of wisdom contained. I searched far and wide and the only piece of information in the documentation that linked those DAQmx calls is the fact that they both have the word "Export" in their name.
Thanks for the posts guys.
Stefan
09-15-2005 12:14 PM