LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Thermocouple and Ultrasonic Sensor Code

Solved!
Go to solution

Hi everyone, I am trying to read the data of thermocouple and ultrasonic sensor using VISA. I have made the code but I am unable to figure out that how labview will understand the data and display it one by one. I have attached my labview and arduino code. Let me know how should I optimize it.

Download All
0 Kudos
Message 1 of 7
(1,632 Views)

Can you provide a LV2019 version of your code?


Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 2 of 7
(1,615 Views)

Right now I am not using LV2019  but for reference i have attached the image to this reply. The temperature sensor is working fine but it's unable to read the ultrasonic sensor data.

Untitled.png

Untitled1.png

  

0 Kudos
Message 3 of 7
(1,608 Views)
Solution
Accepted by topic author crabnebula

you can always save from a newer version to a previous version

 

https://www.ni.com/docs/en-US/bundle/labview/page/lvhowto/saving_for_the_previous_ve.html

in advance, i recommend you sending the whole message at once from arduino, not using several print functions. build a complete string, then send it through serial. Then in your LV code, use the "bytes at port" to check if serial is being received. then parse is in LV.

Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 4 of 7
(1,603 Views)
0 Kudos
Message 5 of 7
(1,598 Views)

Thanks a lot, it really helped and not it is working.

0 Kudos
Message 6 of 7
(1,582 Views)

@jorgemondadori wrote:

in advance, i recommend you sending the whole message at once from arduino, not using several print functions. build a complete string, then send it through serial. Then in your LV code, use the "bytes at port" to check if serial is being received. then parse is in LV.


DON'T USE BYTES AT PORT!!

 

Please watch this video: VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
Message 7 of 7
(1,550 Views)