Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing serial port data and using MAX

I am using LabVIEW 2009 and MAX 4.7.6f0 and would like to find a way to watch serial port data coming live thru MAX does anyone have a suggestion?

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

Hello DLWrkrBee,

 

Have you tried to use the VISA test panels?  You would just need to set a timeout long enough and buffer large enough to grab the all the data you are looking for.

 

What device do you have connected to the serial port?

 

In LabVIEW, you can poll the serial port for the number of "bytes at port" using the property node to see if any data is in the buffer.

Anthony F.
Staff Software Engineer
National Instruments
0 Kudos
Message 2 of 4
(4,082 Views)

Hi Tony,

I have connected a PLC to the cfp-2220 and we poll the serial and read 10 bytes and converted them to 5  U16 integers. How do we display those 5 integers in MAX and not LabView.

Thank You,

0 Kudos
Message 3 of 4
(4,044 Views)

Hello, MAX is generally used for configuration, testing and information.  It does not have an option to format incoming serial data.

 

You can view the raw data at the serial port using the VISA test panel but you will need another program to format the data into a readable unsigned 16bit integer or convert the raw data manually.

Anthony F.
Staff Software Engineer
National Instruments
0 Kudos
Message 4 of 4
(4,040 Views)