01-16-2009 07:46 AM
Hi All,
I have created a DLL using the LabVIEW to measure the voltage from a multifunction DAQ (PXI 6259). I am using this DLL in my LabWindows code for voltage measurement. I am getting 200279 error popup when the DAQ card is not able to sense the voltage. I have tried playing with the sample rate but I still get this error 1 out of 10 times. I had refered to the discussions and Knowledge base for this error. I was not able to find how to suppress this popup (if it occurs), as I would like to continue with my other tests with out the user pressing the Continue button on the popup.
Please find in the attachments the error popup and the LabVIEW code for measuring the voltage. Any kind of pointers and suggestions would be helpful.
Thanks for your response in advance.
Pradeep
01-16-2009 08:20 AM
The error popup comes from the general error handler on the right hand side of you code, set the enum constant to 'No popup'.
I would set the numbers to read to -1 (all available) this means the buffer is cleared every loop run.
If it goes to fast you can add a timeout to the while loop.
I am interested in the settings about sampling mode and sample clock.
Ton
01-18-2009 11:49 PM
Hi Ton,
Thank you for the solution. I was concentrating on the loop and not the error handler to suppress the error.
I have also set the samples to read in the loop to -1.
I am configuring the channel to acquire the data in RSE mode with minimum value as -10 and maximum value as 10.
The DAQ sampling clock is initialized as shown below:
SamplesPerChannel = 1000;
sampleMode = SAMPLE_MODE_CONTINUOUS;
rate = 500000;
I am not encoutering this 200279 error now after the changes.
Thanks for your help.
Regards,
Pradeep.
01-19-2009 02:22 AM
I would set the samples per channel to the same value where you actually read the samples.
In continious mode this value is used to calculate the buffer, however DAQmx will allways go for a 1 second buffer minimal.
Good luck,
Ton