DeviceConfigure[device,config]
configures the specified device according to config.
DeviceConfigure
DeviceConfigure[device,config]
configures the specified device according to config.
Details
- The configuration specification config is often a list of rules or an association of values.
- DeviceConfigure typically changes device properties.
- A device can be specified either by a DeviceObject or by a string representing a device class.
- DeviceConfigure can be called multiple times for a given device.
- DeviceConfigure[device,config] returns config, even if for some reason the operation fails.
Examples
open all close allBasic Examples (1)
Use DeviceConfigure to set the buffer length for a demo device:
DeviceConfigure["RandomSignalDemo", "BufferLength" -> 8];DeviceReadBuffer["RandomSignalDemo"]Length[%]Applications (3)
Use DeviceConfigure to set the pin directions for a GPIO device (e.g. on Raspberry Pi):
DeviceConfigure["GPIO", {4 -> "Output", 17 -> "Input"}];Read the digital value on pin 17:
DeviceRead["GPIO", 17]DeviceWrite["GPIO", 4 -> 1]Capture a frame from the system camera:
dev = DeviceOpen["Camera"];DeviceRead[dev]Modify the default raster size using DeviceConfigure and read another frame with the new setting:
DeviceConfigure[dev, "RasterSize" -> {100, 100}];DeviceRead[dev]Open a connection to a weather station device and configure its barometer bricklet UID:
dev = DeviceOpen["TinkerForgeWeatherStation"]DeviceConfigure[dev, "BarometerBrickletUID" -> "g2h"];Read in the ambient pressure from the configured device:
DeviceRead[dev, "Pressure"]Properties & Relations (1)
DeviceConfigure can change properties of the device after it is open:
dev = DeviceOpen["RandomSignalDemo"]dev["BufferLength"]DeviceConfigure[dev, "BufferLength" -> 2];dev["BufferLength"]See Also
Tech Notes
Related Guides
Related Links
History
Text
Wolfram Research (2014), DeviceConfigure, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceConfigure.html.
CMS
Wolfram Language. 2014. "DeviceConfigure." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceConfigure.html.
APA
Wolfram Language. (2014). DeviceConfigure. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceConfigure.html
BibTeX
@misc{reference.wolfram_2026_deviceconfigure, author="Wolfram Research", title="{DeviceConfigure}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceConfigure.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_deviceconfigure, organization={Wolfram Research}, title={DeviceConfigure}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceConfigure.html}, note=[Accessed: 12-June-2026]}