First, I was able to easily collect data in the logger program. I had integers and floats out of sync in the example program I modified since I was shifting between DAQmxBaseReadAnalogF64 and DAQmxBaseReadBinaryI16. Now with DAQmxBaseReadAnalogF64 using floats and printing floats, I am getting valid values. (My sampling rate is 1000 and I am collecting 1000 samples.)
However, I tried to add back the analog trigger using DAQmxBaseCfgAnlgEdgeStartTrig, and the original error message, DAQmxErrorSamplesNotYetAvailable, -200284, has returned. It seems that this error is occuring because the card is not seeing the analog trigger plugged into the PFI0 BNC of the BNC-2090 and I don't know why. The oscilloscope triggers fine from it. I tried playing with the voltage between 2-6 volts and changing the duration from 1 ms to 2 ms. I have triggerlevel set to 1, but it's not clear what means. I also tried changing DAQmx_Val_RisingSlope to DAQmx_Val_FallingSlope, but it still gives this error. As soon as I take away DAQmxBaseCfgAnlgEdgeStartTrig, I can collect normally, but of course, the data appears randomly along the array since it's not synced to the trigger.
Can the logger program be rigged to wait for a trigger?
Message Edited by mauricev on 07-12-2006 07:59 PM