LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error reading samples from DAQ assistant...!!! Reading samples that are no longer available... Need help..

Sounds like you're acquiring too slowly. The buffers on the DAQ device which store acquired data need to be read from sufficiently fast enough in order to prevent overflow occurring. You should try increasing the number of samples you read from the buffer and the frequency at which you do so. What combination of Sample Rate and Number of Samples are you using?

 

Also, after acquiring your data, you should avoid any intensive processing of that data within your acquisition loop. The reason for this is because if your processing code is lengthy enough, it will take a longer amount of time to complete and then return back to the acquisition stage; this means that you're taking even longer to sample from the buffer properly. To work around this, you could separate your acquisition and processing into two separate loops.

 

Hope this helps.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 2 of 5
(2,432 Views)
i used a boolean control to switch on the data aquisition and when the control is off the user is allowed to use the previous data sample... but after again switching on the boolean control.... the error pops...
0 Kudos
Message 3 of 5
(2,426 Views)

It'd really help if I could see this section of your code... I'm no mind reader!

 

It sounds like your DAQ device is still sampling even when you're not reading from the buffer. Try performing a Finite Acquisition when the button is pressed.


Alex Thomas, University of Manchester School of EEE LabVIEW Ambassador (CLAD)

0 Kudos
Message 4 of 5
(2,424 Views)

Please stop using Facebook as a interface. You've been asked that before and you've also been asked to post your code before. Every time you start LabVIEW, you get a menu of options with the Getting Started window and one of them is a link here.

 

You also should take a couple of LabVIEW tutorials. It sounds like you are making some very basic mistakes.

0 Kudos
Message 5 of 5
(2,398 Views)