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.
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
- Not all devices require DeviceOpen to be called before they are used.
- If used, DeviceConfigure is called after DeviceOpen.
- DeviceOpen automatically opens streams associated with a device.
- DeviceOpen returns a DeviceObject.
Examples
open all close allBasic Examples (1)
Scope (3)
Open a random number generator with a specified random seed:
DeviceOpen["RandomSignalDemo", "seed"]DeviceRead[%]Open a device after discovering it:
FindDevices["Write*"]DeviceOpen[First[%]]Query the properties of an open device:
dev = DeviceOpen["RandomSignalDemo"];dev["Properties"]dev["BufferLength"]Applications (3)
Open the default camera attached to your system and capture a frame:
dev = DeviceOpen["Camera"]DeviceRead[dev]Open a serial port with a specified name:
port = "/dev/tty.Sphero-WRO-AMP-SPP";dev = DeviceOpen["Serial", port]Connect to a weather station device:
dev = DeviceOpen["TinkerForgeWeatherStation"]Use the returned DeviceObject to configure its barometer bricklet UID and read in the ambient temperature:
DeviceConfigure[dev, "BarometerBrickletUID" -> "g2h"];DeviceRead[dev, "Temperature"]Tech Notes
Related Guides
Related Links
History
Text
Wolfram Research (2014), DeviceOpen, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceOpen.html.
CMS
Wolfram Language. 2014. "DeviceOpen." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceOpen.html.
APA
Wolfram Language. (2014). DeviceOpen. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceOpen.html
BibTeX
@misc{reference.wolfram_2026_deviceopen, author="Wolfram Research", title="{DeviceOpen}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceOpen.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_deviceopen, organization={Wolfram Research}, title={DeviceOpen}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceOpen.html}, note=[Accessed: 12-June-2026]}