Managing Equipment Commands

Commands determine how Laboratory Operations processes data from equipment readings.

This page discusses:

See Also
Managing Class Readings

Command Details

You can configure commands on the Laboratory Operations Command Details section of the command for Equipment Class Reading Commands.

You can use the Command Details section to configure the exchange with the equipment. Data is sent to and from the equipment over the socket.

In the sequence of steps for the command details, each step has input, process, and output phases.

  1. Input Phase: Defines how data from the equipment triggers the execution of the step data.
  2. Optional: Process Phase: Extraction of values from the equipment data.
  3. Output Phase: Sends data to the equipment and defines the handling of additional step data.

The available commands depend on the type of equipment connection, the equipment class, and the equipment type.

Handling of Data Received from Equipment

Data received from the equipment is tracked as the total data received and the step data. The step data from one phase determines how to select the step data for execution of the next phases. You can choose to clear the step data at the conclusion of a step data, allowing future step data to process only new data. If you do not clear the step data in the output phase of a step data, new data arriving from the equipment appends to the existing step data.

Command Variables
Variables represent named results from the step data process phase. Variables are available only during execution of the command. The final set of variable values map into the command readings by case-sensitive name matching when the command completes.
Regular Expressions
You can use regular expressions in the command details input data to match equipment step data as part of the input phase, and in the variable data to extract values from equipment step data as part of the process phase. The integration gateway uses regular expressions as defined by the ECMAScript 2018 standard, with the global, multi-line, and single-line flags enabled.

ASCII Character Replacement Tokens

Laboratory Operations supports that use of replacement tokens for ASCII control characters in a command string (DirectCommand) for an Equipment Type. For example, if you want to include a carriage return as part of the command, you could use the <CR> token in the string. Laboratory Operations substitutes the correct ASCII character before sending the command to the equipment.

Laboratory Operations supports the following methods:

  • Decimal: Use the format <ASC:#>, where # is 0-31. For example: <ASC:7> represents the "Bell" character.
  • Shorthand: Use the format <symbol>, where symbol is one of the ASCII control character symbols. For example, <CR> for carriage return or <TAB> for tab. The symbol must be upper case.
Tip: For a list of the ASCII control characters that includes the decimal and the symbol, see http://www.ascii-code.com/.

The supported shorthand characters are: <NUL>, <SOH>, <STX>, <ETX>, <EOT>, <ENQ>, <ACK>, <BEL>, <BS>, <TAB>, <LF>, <VT>, <FF>, <CR>, <SO>, <SI>, <DLE>, <DC1>, <DC2>, <DC3>, <DC4>, <NAK>, <SYN>, <ETB>, <CAN>, <EM>, <SUB>, <ESC>, <FS>, <GS>, <RS>, <US>