Hi,
I have an end-of-line app that is testing some radio boards. These tests will require turnng on/off the some digital lines, reading some analog values and some RS-232 communications, sorta async stuff for the most part.
I have defined several specific tasks in MAX for the digital and analog operations. My question, that I cannot seem to find an answer or example for, is can I mix analog reads and digital writes under a single StartTask/ StopTask(see below)? If not, what is the method. Please advise and an example that gets posted on the web would be GREAT.
Will the StopTask and ClearTask stop and clear all loaded tasks? I guess a more in-depth of what is really going on might be helpful.
thanks
tim
DAQmxErrChk DAQmxLoadTask("D_TurnOnPwr", taskHandle)
DAQmxErrChk DAQmxLoadTask("A_MeasurePwr", taskHandle1)
DAQmxErrChk DAQmxStartTask(taskHandle)
DAQmxErrChk DAQmxWriteDigitalLines(taskHandle, 1, F, 1, _
DAQmx_Val_GroupByScanNumber, i(0), sampsWritten, ByVal 0&)
DAQmxErrChk DAQmxReadDigitalLines(taskHandle, 1, 10#, _
DAQmx_Val_GroupByChannel, readArray(0), arraySizeInBytes, _
sampsPerChanRead, numBytesPerSamp, ByVal 0&)
DAQmxErrChk DAQmxStopTask(taskHandle)
DAQmxErrChk DAQmxClearTask(taskHandle)