Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Labwindows nidaq nidaqmx

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é

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

A good start point will be

 

 Help>>Find examples  Hardware Input Output>>DAQmx>>Counter Measurements>>Period or Pulse Width >>DigPeriods-Buff-Cont-HighFreq2Ctr.prj

------

"A VI inside a Class is worth hundreds in the bush"
യവന്‍ പുലിയാണു കേട്ടാ!!!
0 Kudos
Message 2 of 2
(2,928 Views)