DAQmxErrChk (DAQmxResetDevice ("Dev1"));
DAQmxErrChk (DAQmxCfgHandshakingTiming (taskE,DAQmx_Val_ContSamps,1));
I get samples on port2, but nothing on port0. When I try to apply handshaking on port2, it's the same as for port0... I think my problem come from the buffer size or the numSampsPerChan which I have to pass to 64 to get only one sample generated in my loop.
You will find some help about handshaking mode here :
Here is an example :
Thank you for these links,
But I still don't find what I was looking for, how to configure the right handshaking mode. Today I tried to use DAQ instead of DAQmx, I found here the function DIG_Group_Mode which allow to pass in parameter the wished mode. DAQmx seem to be the new generation of DAQ, delivered with the PCI-DIO-32HS card but in the user manual there is only flowcharts for DAQ !
With DAQ I have the same mistake as with DAQmx : I can generate samples on my ports only if I don't configure handshaking, if I do the program run but I don't get any signal !
If you can help me.