LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS-232 Binary Communication using VISA - Reference Design

Hi All,

I'm looking for a reference design for serial (RS-232) binary communication using VISA.  I'm using LabVIEW 2014 Professional. The data that will be sent can be of any numeric value (including the termination character 0x0a) and will vary in length (4 to 20+ bytes).  I'm very aware that I cannot rely on the termination character to indicate the end of a message.  I was looking at either a) using a byte count or b) toggling some of the RS-232 lines.  Does anyone have a good reference design I could use?  Thanks!

 

 

0 Kudos
Message 1 of 2
(2,322 Views)

@josramir64 wrote:

Hi All,

I'm looking for a reference design for serial (RS-232) binary communication using VISA.  I'm using LabVIEW 2014 Professional. The data that will be sent can be of any numeric value (including the termination character 0x0a) and will vary in length (4 to 20+ bytes).  I'm very aware that I cannot rely on the termination character to indicate the end of a message.  I was looking at either a) using a byte count or b) toggling some of the RS-232 lines.  Does anyone have a good reference design I could use?  Thanks!

 

 


You can use a header.  Then you will know where your data starts.

 

I'd stay away from toggling physical lines unless you are absolutely sure that the ports and the cable(s) have all lines present.

 

If you just stream the data, there is a chance something gets out of sync and you'll never be able to recover.

 

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 2
(2,296 Views)