Proper way to communicate over serial

preview_player
Показать описание
See all VIWeek videos here:

Proper way to communicate over serial
Tim Robinson

Start Time: May 19, 2020, 4:00 PM GMT+2

Too many users look to the Simple Serial Write Read example in LabVIEW and then struggle to achieve solid, robust communication with their instrument. This is because the example does not properly discuss or handle any of the real-world communication schemes instruments use. At this session, explore these schemes and learn how to handle each case.
Рекомендации по теме
Комментарии
Автор

Thanks, Tim, for your clear explanation. Fixed the weird race condition in my project (streaming with serial read and write).

ssyafiq
Автор

0

I have attached a RS232 to USB converter and connected SD-100 Verity Monochromator Legacy Equipment(circa 1999 Device). No software available(unable to find and manufacturer does not have) to drive commands to the unit. I know the unit is a self contained with logic and microprocessed controlled and with external(via Rs232)commands will do its own arrangements to scan and send back plottable data from the RS232 port etc. I have randomly sent commands through the Debugging software to send commands and observe the received data. The unit does not respond and not sure if its because its looking for the right commands or a series of commands I am not aware of etc. I am at a lost and would like to be able to use this equipment. Anyone who might have an inkling on the approach or a better idea please let me know... Anyway to figure out what the hex commands to get this unit to function and then figure out a list that could be created into a gui interface for the windows eventually. Thanks in advance!!!

georgeyork
Автор

I am so frustrated with LabVIEW. When I try the same thing with streaming data via serial LabVIEW is too slow to read (100 ms intervalls) and the buffer fills slowly. I want "real-time" data. Simply put - read the fcking last thing in the buffer and not in order. I tried to put in an array, but I found no way to read the last element. With python this takes 10 minutes, when you dont know how to program. In LabVIEW you always have to fix problems no one ever had with script based programming. I truly hate it, but I have to learn it somehow.

oggimaster
Автор

Having called 'bytes at port' it makes no sense at all to not use the returned value as the input to Visa read.

xequals-pcwl
Автор

This is bloody amazing. Exactly what I needed, didn't realize I've been doing it, not wrong but poorly this entire time.

tomc
Автор

how do i synchronise my arduino serial with my labview? When my arduino already starts reading data and printing it to the derial monitor and i activate my labview 10s later i only read data from 10s ago.

chop
Автор

You look like a young Terry Davis. Anyway, thanks a lot for this. It helped!

Ottmar
Автор

I'm facing an overrun error. It says a character was not read from the hardware before the next character arrived. any solution?

platohjwang
Автор

Why do you have a The Cheat on your title page? :-)

tommcewan
Автор

This was super helpful, thanks for making this

johnmorrell