LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

images continuisly

Hello, I'm generating images continuisly from a waveform, but the program stops because an error : Attempted to read samples that are no longer available. The requested sample was previously available, but has since been overwritten.
Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.
 
What can I do?
 
Thank you very much, and sorry for my english.

 
0 Kudos
Message 1 of 5
(2,615 Views)

Looks like you are acquiring a waveform on analog input channels and constructing an image using that data. am i right?

What is the sampling rate you are acquiring at??

What value have you set for number of samples to read per channel?

Have you assigned an AI buffer?

what kind of on-line data processing are you doing in each acquisition loop??

Also, post your code and we could suggest better.

Regards

Dev

 

 

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

Yes, i am acquiring a waveform on analog input channels and constructing an image using that data.

Sampling rate =25000Hz

Number of samples to read per channel=5000

I  haven'y assigned an AI buffer, it is a problem?

Thank you very much.

 

0 Kudos
Message 3 of 5
(2,608 Views)

Are you using traditionaDAQ ot DAQmx?, coz  DAQmx, kind of auto allocates an AI buffer.

Also try and increase the number of samples you read per channel to a higher value or equal to Sampling rate.

I also suspect that whatever online processing you are doing for converting the waveform to a picture is hitting the acquisition.

so if possible, attach your code for a better sugestion

Message 4 of 5
(2,589 Views)
"

I also suspect that whatever online processing you are doing for converting the waveform to a picture is hitting the acquisition.

"

I agree and it bears repeating.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 5
(2,580 Views)