03-22-2022 06:02 AM
Hi,
I am trying to transfer Continuously changing data from RS232 device to LabVIEW.
but my code is not able to read the change.
The change is only visible after I stop the execution and run again.
03-22-2022 06:04 AM - edited 03-22-2022 06:08 AM
Remove the wait!
Most likely your device has a FIFO buffer that is filling with stale data so, you need to read more often to get the newest data. When you restart the open VISA Session flushes the old data.
03-22-2022 08:43 AM
Could you describe the data protocol for what is being transferred? What device is sending the data? How do you know you read the correct 8 bytes?
A much deeper dive in serial communications in general: VIWeek 2020/Proper way to communicate over serial
03-23-2022 06:45 AM
Protocol is RS-232, Trying to interface weighing machine.
03-23-2022 07:59 AM
@HimanshuShekhar wrote:
Protocol is RS-232, Trying to interface weighing machine.
RS-232 is the hardware protocol. I was referring to the message protocol.
What is the weighing machine (make and model)?