03-19-2009 04:43 AM
hello,
I'm new at nidaq mx. I've created a task in Labwindows.
My Code:
int32 CreateDAQTaskInProject(TaskHandle *taskOut1)
{
int32 DAQmxError = DAQmxSuccess;
TaskHandle taskOut;
DAQmxErrChk(DAQmxCreateTask("DAQTaskInProject", &taskOut));
DAQmxErrChk(DAQmxCreateCIPeriodChan(taskOut, "Dev1/ctr1",
"Periode", 0.000001, 0.1,
DAQmx_Val_Seconds, DAQmx_Val_Rising,
DAQmx_Val_LowFreq1Ctr, 0.001,
4, ""));
DAQmxErrChk(DAQmxCfgImplicitTiming(taskOut, DAQmx_Val_FiniteSamps, 100000));
*taskOut1 = taskOut;
Error:
return DAQmxError;
}
What are the possibilities to read the samples?
Thanks
André
03-19-2009 12:19 PM
A good start point will be
Help>>Find examples Hardware Input Output>>DAQmx>>Counter Measurements>>Period or Pulse Width >>DigPeriods-Buff-Cont-HighFreq2Ctr.prj