0% found this document useful (0 votes)
3K views

Serial Port Interface Using Labview

This document discusses LabVIEW VIs for serial port communication using a serial port interface. It describes VIs for configuring the serial port, writing data to the output buffer, reading data from the input buffer, and closing the port. It also discusses writing data to the output port by specifying a string or character and optional buffer size. Reading data from the input port is also covered. Examples are provided for writing and reading serial port data.

Uploaded by

sandipnair06
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views

Serial Port Interface Using Labview

This document discusses LabVIEW VIs for serial port communication using a serial port interface. It describes VIs for configuring the serial port, writing data to the output buffer, reading data from the input buffer, and closing the port. It also discusses writing data to the output port by specifying a string or character and optional buffer size. Reading data from the input port is also covered. Examples are provided for writing and reading serial port data.

Uploaded by

sandipnair06
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Serial port interface using Labview

By, Sandip Nair [email protected] sandipnair.hpage.com

VIs for serial port communication


Configuration: - used to open up the serial port with the specified or default parameters Write: - used to write the string to the output buffer of the serial port Read: - used to read the string data from the input buffer for the specified byte count Close: - used to close the port and release the resources associated with the port

VIs for serial port communication


Byte count: - specifies the number of byte present in the input buffer Break: - sends a break to the output port for the default duration or specified duration Flush I/O: - flushes the I/O port buffer Buffer size: - sets the I/O buffer size

Writing a data on the output port


It is to be remembered that the data which is to be written onto the output port should be a character or string Specifying a buffer size is an optional step, if not specified it takes the default buffer size

Writing a data on the output port

Writing a data on the output port

Reading a data from the input port

Note: - Please ignore the warning shown in the error out of the above figure

Reading a data from the input port

Writing and reading

Note: - Please ignore the warning shown in the error out of the above figure

Writing and reading

Note: - The writing and reading can be tested just the sorting the Tx and Rx terminals of serial port

You might also like