Hi all,
Maybe one can come up with an idea for my problem.
I have a data aquisition system and a serial port to transmit information - basically, the output to the serial port is linearly dependent on the input values I get from the DAQ system.
I attached the VI so that my explanations can be understood easier.
I use probes so that I can see what happens in the wires. The observation is that the values to output are lesser than those that come from the input. But the program breaks with this error:
"Error -200279 occurred at DAQmx Read (Analog 2D I32 NChan NSamp).vi:2"
Possible reason(s):
Measurements: 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.
Property: RelativeTo
Corresponding Value: Current Read Position
Property: Offset
Corresponding Value:
Task Name: _unnamedTask<23>
-----
So, I don't understand why should be a DAQ Read VI error, since the same VI , without the part added for writing to the serial, worked well previously.
Is it a problem with the big amount of data that the serial gets and it can't handle it? Is it a good suggestion to downsample before getting to the input of the serial port? If yes, is there a VI for that or an easier solution for this?
I would greatly appreciate any suggestion from you.
Thank you.
Dana