LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compact DAQ 9215 BNC module -- Error code -200278 occured at DAQmx read

   
Hi,

I am trying to read data from a sensor giving an output between +/- 300mv. It is connected to the 9215 BNC module on the Compact DAQ chassis. When i try to acquire any number of samples at any frequency it comes up with an error message at the end (-200278). I have attached the screenshot of the error message.

The program displays information in realtime in a waveform chart on the front panel as the  samples are acquired and also writes them onto a lvm file. I have also attached the vi of the program.

Please help me as i cannot solve this problem. All help will be appreciated.

Thanks
Harshil
Download All
0 Kudos
Message 1 of 12
(3,365 Views)
Try this.  You will note that I have modified how the iteration count is compared to the number of samples.  Remember, the iteration count starts at 0 and not 1.
Message 2 of 12
(3,350 Views)
Hi,

Thanks alot for the help. Now the problem I am having is that if I specfy a large sampling rate the display is very slow as it is acquiring at a much higher pace than what it can right. This is because the file written to is inside the while loop. If I put the write file function outside the while loop then it only writes the last value.

Please help on how to get round this.

regards
Harshil
0 Kudos
Message 3 of 12
(3,345 Views)
Hi,

Thanks alot for the help. Now the problem I am having is that if I specfy a large sampling rate the display is very slow as it is acquiring at a much higher pace than what it can right. This is because the file written to is inside the while loop. If I put the write file function outside the while loop then it only writes the last value.

Please help on how to get round this.

regards
Harshil
0 Kudos
Message 4 of 12
(3,347 Views)
Suggest you use a shift register and build an array of data in the while loop.  Then you can write the entire array of data to the file after the while loop has completed running.
Message 5 of 12
(3,335 Views)
Hi,

Im sorry but im quite new to labview can please slightly explain more or elaborate more on how to use the shift register and the build array function.

regards
harshil
0 Kudos
Message 6 of 12
(3,333 Views)

There are many examples included with LabView that use shift registers and arrays.  Help>Find Examples

These are also covered in the LabView Help.

0 Kudos
Message 7 of 12
(3,328 Views)
Hi,

Thanks for the help. I have tried to use arrays to store the data before i write to the file. The problem is when it writes at the end, the format changes and i do not get the channel name and the dt value (time interval between samples).

Also if i select more than two channels than i do not get two colums in the output file but one column with both the values of the channels one after the other and thus becomes very hard to make where one channel ends the other begins.

Please help on how to get round this.

Harshil
0 Kudos
Message 8 of 12
(3,313 Views)
0 Kudos
Message 9 of 12
(3,301 Views)
Hi,

Thanks for the help. I had initially done it without a while loop but the problem with this method is that the waveform is not updated constantly while the inputs come in (real time). The graph in the waveform chart will be displayed at the end. Thus I can't monitor the inputs as they come in.

Please help.

regards
Harshil
0 Kudos
Message 10 of 12
(3,295 Views)