09-29-2022 04:32 AM
Hi everyone!
I'd like to read different values in Labview, sent by my ESP32 microcontroller via Serial communication. I've watched many tutorials and examples about this, but nothing worked for me. I'm using VISA inside labview, my code runs without any error messages, but nothing happens. I attached my labvies code. My esp32 code is very simple, it just generates random values between 1 and 100 and send it to Serial monitor with Serial.println().
Solved! Go to Solution.
09-29-2022 04:52 AM
Hi,
In many cases a good start is to initialize your connection by using Visa Configure Serial Port.
This has to match the config from your microcontroller output.
Then you have an issue with your read function, it is linked to i from your while loop meaning it will grow each time and read one data more each time.
By using a termination char you can give, for example, a value of 1000 and as soon the termination char is read the function returns your data.
09-29-2022 08:08 AM