DeviceRead[devobj]
reads a single default item from the open device corresponding to the specified DeviceObject.
DeviceRead["devclass"]
reads from the default device in the class "devclass".
DeviceRead[device,param]
reads the parameter param from the specified device.
DeviceRead[device,{param1,param2,…}]
reads the list of parameters parami from the specified device.
DeviceRead
DeviceRead[devobj]
reads a single default item from the open device corresponding to the specified DeviceObject.
DeviceRead["devclass"]
reads from the default device in the class "devclass".
DeviceRead[device,param]
reads the parameter param from the specified device.
DeviceRead[device,{param1,param2,…}]
reads the list of parameters parami from the specified device.
Details
- DeviceRead is a blocking function; when called, it communicates with the device and does not return until it has the data it needs.
Examples
open all close allBasic Examples (2)
Open a demo device and read from it:
DeviceOpen["RandomSignalDemo"]DeviceRead[%]DeviceRead[%%, "Integer"]Read a parameter from a device of the "RandomSignalDemo" class:
DeviceRead["RandomSignalDemo", "Integer"]DeviceRead["RandomSignalDemo", {"Real", "Integer"}]Applications (3)
Read a single frame from the default camera:
DeviceRead["Camera"]Close the connection to the camera:
DeviceClose["Camera"]Open a connection to a weather station device, configure it, and read in the ambient humidity:
dev = DeviceOpen["TinkerForgeWeatherStation"]DeviceConfigure[dev, "BarometerBrickletUID" -> "hUi"];DeviceRead[dev, "Humidity"]DeviceClose[dev]Configure pin 17 of a GPIO device, e.g. on Raspberry Pi, for reading and read the digital value on it:
DeviceConfigure["GPIO", 17 -> "Input"];DeviceRead["GPIO", 17]Tech Notes
Related Guides
Related Workflows
- Access GPIO on Raspberry Pi
History
Text
Wolfram Research (2014), DeviceRead, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceRead.html.
CMS
Wolfram Language. 2014. "DeviceRead." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceRead.html.
APA
Wolfram Language. (2014). DeviceRead. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceRead.html
BibTeX
@misc{reference.wolfram_2026_deviceread, author="Wolfram Research", title="{DeviceRead}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceRead.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_deviceread, organization={Wolfram Research}, title={DeviceRead}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceRead.html}, note=[Accessed: 13-June-2026]}