Dear all,
I am trying to setup a digital counter using a NI-DAQmx card and using VS-C#.
My question comes when I declare the GateTask. So, I do:
GateTask.COChannels.CreatePulseChannelTime("Dev1/ctr0", "Gate",
NationalInstruments.DAQmx.COPulseTimeUnits.Seconds,
NationalInstruments.DAQmx.COPulseIdleState.Low,
recycletime, endtime, realtime);
When starting this GateTask the output should be something like:
When starting the Task it waits "recycletime" seconds low, during the "realtime" counts and in "end time" does not count because it is low again.
It seems, though, that it never enters the "endtime" zone, no matter which value I chose for it, it will never take it into account.
The question is what it is exactly this low time (endtime) value? Could I generate a Gate task with no initial delay, then a pulse and at the end some waiting time after the next high pulse?
Thanks in advance for the help,