LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous Changing Data transfer from RS- 232 device to labview

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.

0 Kudos
Message 1 of 5
(1,198 Views)

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.


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 5
(1,195 Views)

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



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(1,173 Views)

Protocol is RS-232, Trying to interface weighing machine.

 

0 Kudos
Message 4 of 5
(1,136 Views)

@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)?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(1,123 Views)