-error message 200284 when calling DAQmxReadAnalogF64() with a USB-6210

I have tried the code a CVI application to communicate with a USB-6210. I want to start the acquisition to gain 30 samples and then collect them. My problem is when I call the DAQmxReadAnalogF64() function, I get this message error of-200284. The error message means that the data has not yet been acquired in a nut shell. He said I should do to ensure that my startup trigger is configured correctly. I tried to use the internal clock to start the acquisition. I tell myself that I have not configured something correctly.

In the DAQmxCfgSampClkTiming() function, I set the sampleMode to DAQmx_Val_FiniteSamps I thought I would collect 30 samples (number_of_scans = 30) when I called DAQmxStartTask(). It does not work. When I put sampleMode to DAQmx_Val_ContSamps I can collect data. Here is a stripped down most of my code:

returnAcq = DAQmxCreateTask ("myAcqTask", & acq_taskHandle);
returnAcq = DAQmxCreateAIVoltageChan (acq_taskHandle, physicalChannel, "acq_channel", DAQmx_Val_Diff, minVal, maxVal, DAQmx_Val_Volts, "");

returnAcq is DAQmxCfgSampClkTiming (acq_taskHandle, "OnboardClock", sweepsInterval, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, number_of_scans);.
returnAcq = DAQmxStartTask (acq_taskHandle);
returnAcq = DAQmxReadAnalogF64 (acq_taskHandle,-1, 5, DAQmx_Val_GroupByChannel, Data_readings, number_of_scans, & read, 0);
Disable the task
DAQmxClearTask (acq_taskHandle);

I guess my question is: am I set up so that the internal clock will begin the acquisition when I call DAQmxStartTask()? I thought when I put the second parameter in DAQmxCfgSampClkTiming() to 'OnboardClock', this would use the internal clock.

Thanks in advance for your help,

Don Pearce

Don,

You're right, your task is configured to use a sample clock internal with a trigger for starting the software.  The description of the error pointed out several reasons why people might see this error.  What is the value of 'sweepsInterval '?  I think that as configured DAQmx should be pointing at the speed (in Hz) specified by sweepsInterval.  By the way-1 in the entrance to numSampsPerChan, I think DAQmx will try to read all samples for a finite acquisition (30 in your case).  If you run below 6 Hz, the lira could be the time-out period before these data were available.

When it is configured as a continuous, what are the values is passed in the sampsPerChanRead parameter?

Dan

Tags: NI Hardware

Similar Questions

Maybe you are looking for

  • ThinkPad W510 display dies randomly and then machine shuts

    the last two days, that my machine has suffered an accident with similar symptoms. Firstly, the screen turns white. I can see some disk activity. It continues perhaps 20-30 seconds, and then the machine stops. Yesterday, I had to restart the machine

  • Windows 1 kHz time loop limit reason

    I use a loop timed in Labview2011. I'm not able to exploit the time loop above 1 kHz or less 1 msec .i read in a reply on the forum which, due to windows, it is not possible to operate above 1 kHz, but the reason no didn't to .i want to know why wind

  • Get the reference of the decoration

    I design a training request a topic for a task.  I want to place a 'target' on a white screen, have the object move a joystick and follow the target.  For the target, I would use a decoration and property nodes allows you to change its size, position

  • The cutting tool does not work

    I get an error message when I try to launch it. I tried to restart my computer because it suggests, but it didn't fix it.

  • The WRT610N-EU firmware update

    My new WRT610N-EU has firmware 1.00.00 B18 August 16, 2008. I tried without success to date with the latest 21/01/2009 Ver.1.00.02.10, who proves to be an American version. When you provide a version of the EU?