({{, (RefLink[DeviceRead, paclet:ref/DeviceRead])[devobj] 
reads a single default item from the open device corresponding to the specified (RefLink[DeviceObject, paclet:ref/DeviceObject]).}, {, (RefLink[DeviceRead, paclet:ref/DeviceRead])["devclass"]
reads from the default device in the class "devclass".}, {, (RefLink[DeviceRead, paclet:ref/DeviceRead])[device,param]
reads the parameter param from the specified device.}, {, (RefLink[DeviceRead, paclet:ref/DeviceRead])[device,{(Subscript[param, 1]),(Subscript[param, 2]),…}]
reads the list of parameters (Subscript[param, i]) from the specified device.}})

OpenersNotesSection(Spacer1)Details

(RefLink[DeviceRead, paclet:ref/DeviceRead]) is a blocking function; when called, it communicates with the device and does not return until it has the data it needs.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

Open a demo device and read from it:

DeviceOpen["RandomSignalDemo"]

DeviceRead[%]

Read a particular parameter:

DeviceRead[%%,"Integer"]

Read a parameter from a device of the "RandomSignalDemo" class:

DeviceRead["RandomSignalDemo","Integer"]

Read a list of parameters:

DeviceRead["RandomSignalDemo",{"Real","Integer"}]

OpenersExampleSection2(Spacer1)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"]

Close the device:

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]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DeviceReadList, paclet:ref/DeviceReadList])  ▪  (RefLink[DeviceReadLatest, paclet:ref/DeviceReadLatest])  ▪  (RefLink[DeviceReadBuffer, paclet:ref/DeviceReadBuffer])  ▪  (RefLink[DeviceReadTimeSeries, paclet:ref/DeviceReadTimeSeries])  ▪  (RefLink[DeviceStreams, paclet:ref/DeviceStreams])  ▪  (RefLink[DeviceExecute, paclet:ref/DeviceExecute])  ▪  (RefLink[DeviceExecuteAsynchronous, paclet:ref/DeviceExecuteAsynchronous])  ▪  (RefLink[Read, paclet:ref/Read])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Developing Device Drivers, paclet:tutorial/DevelopingDeviceDrivers])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Using Connected Devices, paclet:guide/UsingConnectedDevices])}, {▪(RefLinkPlain[Raspberry Pi, paclet:guide/RaspberryPi])}, {▪(RefLinkPlain[Arduino, paclet:guide/Arduino])}, {▪(RefLinkPlain[Weather Data, paclet:guide/WeatherData])}, {▪(RefLinkPlain[Creating & Importing Images, paclet:guide/CreatingAndImportingImages])}})}})