vr46
2008-08-02 21:10:06 UTC
I'm trying to read AI channels from a 6033E card with DAQmx and I invariably get error no matter what I do. Here is one of them DAQmxStartTask error:An error has occurred while attempting to configure the device for an analog input acquisition.If an external master timebase is being used, make sure the source is connected and generating an appropriate clock. Otherwise, contact National Instruments Technical Support.Task Name: ai64Status Code: -200329I can run the same program on a 6052E and it worksI tried to set clock w/ for instance or not calling it at all and it won't make a differenceerror=DAQmxCfgSampClkTiming(taskHandle,NULL,10000.0,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,nSamples);Nevertheless, I can run the DAQmxTestPanels and I can read at least 1 channel in OnDemand mode.So what is it that the test panel does to specify the OnDemand mode and what is the proper sequence of DAQmx calls to get it to work.Calling DAQmxSetSampTimingType(taskHandle, DAQmx_Val_OnDemand);does not make a difference to me.Regards