Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

UART Express VI

LabVIEW 2013 for myRIO Module Help

Edition Date: June 2013

Part Number: 373925A-01

»View Product Info

Owning Palette: myRIO VIs

Requires: myRIO Module

Writes/reads data to/from a Universal Asynchronous Receiver/Transmitter (UART) device.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
NameSpecifies the name of this Express VI. You can also double-click the name of this Express VI on the expandable node to edit the name.
ChannelSpecifies the UART channel you want to use for writing/reading data to/from the UART device.
ConnectionsSpecifies the NI myRIO pins that correspond to the RX line and TX line.
ModeSpecifies the mode of operation that this Express VI uses to communicate with the UART device. Mode contains the following options:
  • Write—Specifies that this Express VI writes data to the UART device.
  • Read—Specifies that this Express VI reads data from the UART device.
    • Read all available—Specifies whether to read all available characters from the UART device. The default is FALSE.
Communication settingsSpecifies the configuration for communicating with the UART device. Communication settings contains the following options:
  • Baud rate—Specifies the baud rate of transmission. The default is 9600.
  • Data bits—Specifies the number of bits in the incoming data. The default is 8.
  • Parity—Specifies the parity bits this Express VI uses to write or read characters. The default is None.
  • Stop bits—Specifies the number of stop bits this Express VI uses to indicate the end of a data frame. The default is 1.0.
View CodeDisplays the underlying code of this Express VI.

Block Diagram Inputs

ParameterDescription
Characters to WriteSpecifies the characters that you want this Express VI to write to the UART device. This input is available only when you set Mode to Write.
Character CountSpecifies the number of characters that you want this Express VI to read from the UART device. This input is available only when you set Mode to Read.
error in (no error)Describes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
Character CountReturns the number of characters that this Express VI reads from the UART device. This output is available only when you set Mode to Write.
Characters ReadReturns the characters that this Express VI reads from the UART device. This output is available only when you set Mode to Read.
error outContains error information. This output provides standard error out functionality.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit