DeviceExecute
This feature is not supported on the Wolfram Cloud.

DeviceExecute[device,"command"]
executes the specified command on a device.

DeviceExecute[device,"command",params]
executes the command with the parameters params.

DetailsDetails

  • 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.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Open a demo device and execute a command on it:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Specify a device class to execute the same command:

In[3]:=
Click for copyable input
Out[3]=

Execute a command with a specified parameter:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)