DeviceExecute
✖
DeviceExecute
Details
- A device can be specified either by a DeviceObject or by a string representing a device class.
- DeviceExecute is a blocking function; when called, it communicates with the device and does not return until it has the data it needs.
- The parameters params can be given either as a list of raw parameters or as an association or list of rules giving names and values of parameters.
- DeviceExecute returns a Wolfram Language version of the result of executing the specified command on the device.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Open a demo device and execute a command on it:
https://wolfram.com/xid/0dqvy9oknhv-x3skdh
https://wolfram.com/xid/0dqvy9oknhv-g4tbh7
Specify a device class to execute the same command:
https://wolfram.com/xid/0dqvy9oknhv-u0wmxs
Execute a command with a specified parameter:
https://wolfram.com/xid/0dqvy9oknhv-f0k1ma
https://wolfram.com/xid/0dqvy9oknhv-zzmo6b
Applications (2)Sample problems that can be solved with this function
Open a weather station and write a string to its LCD screen:
https://wolfram.com/xid/0dqvy9oknhv-pxrybg
https://wolfram.com/xid/0dqvy9oknhv-b0nxqs
Use DeviceExecute to clear the screen:
https://wolfram.com/xid/0dqvy9oknhv-9j2l8j
Write a string of bytes to a Sphero serial device and use DeviceExecute to check if a response is available:
https://wolfram.com/xid/0dqvy9oknhv-e5n697
https://wolfram.com/xid/0dqvy9oknhv-9nsxuw
https://wolfram.com/xid/0dqvy9oknhv-1pqhd8
Flush the buffered data and check that the buffer is empty:
https://wolfram.com/xid/0dqvy9oknhv-ddimfr
https://wolfram.com/xid/0dqvy9oknhv-gefh8b
Wolfram Research (2014), DeviceExecute, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceExecute.html.
Text
Wolfram Research (2014), DeviceExecute, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceExecute.html.
Wolfram Research (2014), DeviceExecute, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceExecute.html.
CMS
Wolfram Language. 2014. "DeviceExecute." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceExecute.html.
Wolfram Language. 2014. "DeviceExecute." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceExecute.html.
APA
Wolfram Language. (2014). DeviceExecute. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceExecute.html
Wolfram Language. (2014). DeviceExecute. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceExecute.html
BibTeX
@misc{reference.wolfram_2024_deviceexecute, author="Wolfram Research", title="{DeviceExecute}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceExecute.html}", note=[Accessed: 07-January-2025
]}
BibLaTeX
@online{reference.wolfram_2024_deviceexecute, organization={Wolfram Research}, title={DeviceExecute}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceExecute.html}, note=[Accessed: 07-January-2025
]}