07-15-2020 11:37 AM
@Oxbow8 wrote:
I dont get the difference between "Samples to Read" and "Rate (Hz)" and what this is
Rate is the rate at which the DAQ takes a sample and add it to the buffer. Samples To Read is the number of samples you want to take off of the buffer every call of this VI.
07-15-2020 11:54 AM
@Oxbow8 wrote:
I have no code !
Like I said, I have the DAQ assistant in a Loop and that's it
I dont get the difference between "Samples to Read" and "Rate (Hz)" and what this is
You do have code!. Whatever VI you have that you took that screen shot of.
Rate is how many samples per second the DAQ device collects.
Samples to read is how many samples are pulled from the DAQ buffer every time it is called.
Since both are set to 100, then you'll get 100 samples every second.
Now it is possible that 100 Hz is not a valid sample rate for this DAQ device. (I don't know, I haven't looked up the specs.) For instance, some devices can only go as low as 1614 Hz or something like that. So if you ask for 100 Hz, it coerces to 1614, and when you request 100 samples, it should come back with 100 samples ever 100/1614 seconds. (about 60 msecs.). If your code can't keep up, then you'll eventually fill up the buffer and get that error message.
Your VI seems simple enough that it should keep up. But we can't tell if there is something else missing in your situation since all we have seen is a simple screenshot.
07-20-2020 05:12 AM
Hello,
My analogic input works and the code (i jointed it here but it's just the DAQ and indicator) read it properly, but it still crashes about 1/10 time.
I think the rate in the DAQ is not the good one. Here is the datasheet, I read it 10 times but don't understand what rate should I put in my DAQ ?http://www.ni.com/pdf/manuals/373781b_02.pdf
thanks so much if someone has an idea
07-20-2020 05:35 AM