closes the connection to a device and frees related resources.
- Devices are represented by a DeviceObject or by a string giving the name of a device class.
- DeviceClose closes any open streams to and from the device and releases external resources associated with the device.
Examplesopen allclose all
Basic Examples (2)
Open a demo device:
Close the device:
Close a device by giving its string class name:
Open a connection to a serial device and then close it:
Open a connection to a weather station device, read in temperature data, and then close the connection:
Open the default camera attached to your system and close it after five seconds:
Introduced in 2014