String Syntax in Interactive Control

NI-488.2

String Syntax in Interactive Control

You can enter strings as an ASCII character sequence, hex bytes, or special symbols.

ASCII character sequence: You must enclose the entire sequence in quotation marks.

Hex byte: You must use a backslash character and an x followed by the hex value. For example, hex 40 is represented by \x40.

Special symbols: Some instruments require special termination or end-of-string (EOS) characters that indicate to the device that a transmission has ended. The two most common EOS characters are \r and \n. \r represents a carriage return character and \n represents a linefeed character. You can use these special characters to insert the carriage return and linefeed characters into a string, as in "F3R5T1\r\n".


Related Topics:

Auxiliary Functions in Interactive Control

Count Return in Interactive Control

Error Information in Interactive Control

Getting Started with Interactive Control

Interactive Control Overview

Status Reporting in Interactive Control

Syntax Rules in Interactive Control.

Using Interactive Control.