Skip to main content
Previous sectionNext section

Devices

Work programmatically with devices such as printers and tape drives; configure; query for list of devices.

Background Information

ObjectScript, MVBasic, and Caché Basic provide commands for working with devices. For details, see the Caché I/O Device Guide, Caché ObjectScript Reference, Caché Basic Reference, and Caché MultiValue Basic Reference.

Available Tools

In addition, InterSystems provides the following tools:

%Device class

Provides a set of class methods for working with devices. These include:

  • Broadcast()

  • ChangePrincipal()

  • Get()

  • GetReadTerminators()

  • GetReadType()

  • And others

Availability: All namespaces.

Exposes some NLS properties of the current device and provides methods for changing those properties.

Availability: All namespaces.

Enable you to modify and obtain information about the [Devices] and [DeviceSubTypes] sections of the CPF file. (Note that you usually modify this file via the Management Portal. See the Caché System Administration Guide.)

Each class also provides a class query called List().

The class documentation includes examples and details.

Availability: %SYS namespace.

Enables you to modify and obtain information about the [MagTapes] section of the CPF file. (Note that you usually modify this file via the Management Portal. See the Caché System Administration Guide.)

It also provides a class query called List().

The class documentation includes examples and details.

Availability: %SYS namespace.

See Also