Serial Time Out Labview

Active2 years, 3 months ago

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?

OutLabview serial port driver

Labview Serial Port Driver

eyllanesc
107k12 gold badges39 silver badges71 bronze badges
Diana Laura Diana Laura

1 Answer

There are a few things you can change to improve your performance, all in the red box below:

Serial Time Out Labview
  1. Move the VISA Configure Serial Port.vioutside of the while loop. You only need to configure the port once after opening it, not for every read.
  2. Tune the read timeout.
  3. 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:

Labview Serial Port Example

Joe FriedrichsenJoe Friedrichsen

Labview Serial Port Timeout Error

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Labview Serial Port

Not the answer you're looking for? Browse other questions tagged arduinolabview or ask your own question.

Comments are closed.