12-20-2017 07:44 PM
I have an error with Buffer size. I have an HR100 LVDT with a DAQ 6009. I don't get this error when I take out my loop containing my write to file block. I've already looked at NI's boards on this topic and they were of no help.
12-21-2017 01:40 AM - last edited on 12-19-2024 05:12 PM by Content Cleaner
Hi alaspina,
I don't get this error when I take out my loop containing my write to file block.
I don't believe this, but can't prove it…
Your DAQAssistent is set to read 5 million samples (!) at a rate of 1kS/s: this will take 5000s or 1h23m20s. The buffer needed for this will need from 5M*2bytes (raw data) to 5M*8bytes (DBL data): do you really think your little USB6009 will handle this?
- Do you really think your USB6009 will handle this sample rate at all? RTFM!
- Please rethink about setting reasonable combinations of "sample rate" and "samples to read"!
- What's the purpose of that mostly unwired "Wait for next sample clock" function?
- You really should read this and stay away from ExpressVIs when you want good performance of your VIs!
12-21-2017 10:29 AM
Good catch. I was typing in values out of desperation. However, I normally stayed within 1000 samples to read and 2.5k hertz.
12-21-2017 10:31 AM
the unwired block was something I was testing out and it didnt have any effect. I left it in there but yes it serves no purpose.
12-22-2017 01:43 PM
Stil don't have a solution. Any help other than looking at NI web material I've already looked at is appreciated.
12-22-2017 01:55 PM
Here is the updated NI in case it was confusing to note that I was testing some parameters. I've kept the samples to read 1000 and the hertz at 2500 which was specified on the amplifier manual I followed.
12-23-2017 11:36 AM
Hi alaspina,
you still don't mention the exact error number you get: which error is it exactly?
Did you look at my link given in my last comment? Did you look at all those example VIs coming with LabVIEW and DAQmx? There surely is an example about reading AI and saving data to file…