06-08-2022 04:45 AM
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.
Solved! Go to Solution.
06-08-2022 06:17 AM
Can you provide a LV2019 version of your code?
06-08-2022 06:32 AM - edited 06-08-2022 06:34 AM
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.
06-08-2022 06:38 AM
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.
06-08-2022 06:46 AM
It's in 19
06-08-2022 07:06 AM
Thanks a lot, it really helped and not it is working.
06-08-2022 09:17 AM - edited 06-08-2022 09:17 AM
@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