DeviceOpen

Listing of Devices »

DeviceOpen["devclass"]

opens a connection to the first available device in the class specified by "devclass".

DeviceOpen["devclass",spec]

opens a connection to the particular device defined by spec.

DeviceOpen[device]

opens a connection to an existing device specified by a DeviceObject.

Details

Examples

open allclose all

Basic Examples  (1)

Open a demo device:

Read one item from the device:

Scope  (3)

Open a random number generator with a specified random seed:

Read from the device:

Open a device after discovering it:

Query the properties of an open device:

Obtain a property value:

Applications  (3)

Open the default camera attached to your system and capture a frame:

Open a serial port with a specified name:

Connect to a weather station device:

Use the returned DeviceObject to configure its barometer bricklet UID and read in the ambient temperature:

Introduced in 2014
 (10.0)