LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS 232 communication

I have designed this program to read data and plot them from "TIC Instrument Controller 3 Head, using RS 232".  However, I get the error that reads not wired or bad terminal. How do I fix it? pressure  VI screenshot.PNG

0 Kudos
Message 1 of 4
(1,385 Views)

You need to wire in the number of bytes to read. Normally on RS-232 communications the data is terminated with a line feed character. The VISA read will automatically stop reading when it sees the termination character. So, the number of bytes to read just has to be greater than the largest response you could get.

 

If you are reading binary data, you will need to know what protocol is being used and that will dictate what you provide for the number of bytes to read.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 4
(1,372 Views)

You forgot to wire the "bytes to read" input on the VISA Read

 

You should watch this video: VIWeek 2020/Proper way to communicate over serial

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 4
(1,368 Views)

Hi PCAD,

 


@PCAD wrote:

However, I get the error that reads not wired or bad terminal. How do I fix it?


Open the context help: it will show you which connections of a subVI/function are required and which connections are optional

 

This is very basic LabVIEW stuff, so: did you take those Training resources offered at the top of the LabVIEW board?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(1,326 Views)