12-16-2010 06:59 PM
How to acquire a group of finite amount of data (Waveforms) using 2 cDAQ analog input module when generate a pulse train using Counter at different frequencies
Aim description:
1.generate a finite digital pulse train (10Hz, Duty ratio=0.9) from a Counter using NI9401
2.voltage input (10000Hz) start simultaneously with Counter output using NI9206
3.thermocouple input (50Hz)start simultaneously with Counter output using NI9219
4.set NI9219 at HIGH SPEED with TC mode (I can NOT locate the ADC Timing mode in the Channel Property Node)
12-17-2010 09:13 AM
To check the problem in the previous VI, I have simplified the VI. In the new VI, HIGH SPEED mode setup for NI9219 is done. Only the VOLTAGE(NI9206) input and THERMOCOUPLE(NI9219) input are set to start simutaneously as in the attachment "question VI3.vi". However I have the following error "Error -200284 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:4"
Any advice is highly appreciated. Thank you.
12-17-2010 10:19 AM
It is me again. I have changed previous VI to run on my cDAQ9174 and the error is still the same (Error -200284 occurred at DAQmx Read (Analog 1D Wfm NChan NSamp).vi:1). Please give me some advice. Thank you.
01-03-2011 04:52 PM
Happy new year everyone. I hope you all have enjoyed a pieceful Christmas.
Here is my questions from last year. Please help me out.
01-05-2011 04:22 AM
Hello NCLbingji,
Happy New Year!
Error -200284 usually means that a DAQmx task you have created is not acquiring the Finite Samples you have requested within the Timeout period on the DAQmx Read. To see error explanations in the future, you can use a tool built into LabVIEW and select 'Help'->'Explain Error' from the main menu at the top.
On your front panel, you have a control called 'Number of Samples'. Try putting a smaller number in control. A smaller number of samples could be acquired in the right timeframe.
However, looking at your code, there is also a possibility that the lower task is not being triggered or started at all. I see you are trying to export a signal from one task to the other. I have made some small changes to your code that will allow the second task to be triggered as soon as the first task starts. This still may not be the solution, but it is something different to try.
In the VI attached, please change the block diagram constants referring to 'AI/starttrigger' and 'AI/Sampleclock' to point to the right cDAQ module for Strain in your system.
01-15-2011 11:00 AM
Thank you George.
In a debug mode, the lower task is actually triggered and data are passed until DAQmx Read. However, Error -200284 happens at the lower DAQmx Read.
I have tried to simplify the VI further more and the attached VI ''cDAQ9174-Synch-Analog Input.VI'' are set as follows
master device-cDAQ1mod1/ai0 (NI9206)-1000Hz-10 finite sample
slave device-cDAQ1mod2/ai0 (NI9205)-1000Hz-10 finite sample
However, the same Error -200284 happens at the lower DAQmx Read.
When I try self-test in MAX for cDAQ9174, NI9206, NI9205, all the modules are passed. I really do not know the reasons.