Serial Timeout Labview
Serial communication GUI using Labview. Skip navigation Sign in. This video is unavailable. Serial Communication using Labview.avi Muhammad sharjeel.
I'm trying to visualize temperature and graphing voltage analog reading from arduino on Labview, however after some time the adquisition and the waveform chart slow down. I'm using a DS18B20 sensor this is my code on arduino:
Labview Serial Subvi Time Out
NOTE: I'm sending the data fro arduino on the same line but separated by a coma
What am I doing wrong? Or how can I make the waveform chart go faster?
Labview Serial Port Driver
eyllanesc1 Answer
There are a few things you can change to improve your performance, all in the red box below:
- Move the
VISA Configure Serial Port.vi
outside of the while loop. You only need to configure the port once after opening it, not for every read. - Tune the read timeout.
- Confirm your VI and Arduino program use the same termination character.
Right now, your Arduino program sends two termination characters for every sensor read, but your VI expects there to be only one.
Each call to Serial.println()
will send a CRLF character sequence:
Comments are closed.