DeviceWrite
This feature is not supported on the Wolfram Cloud.

DeviceWrite[device,val]
writes the value val to the specified device.

DeviceWrite[device,{val1,val2,}]
writes the sequence of values to the specified device.

DeviceWrite[device,paramval]
writes val as the value of the parameter param.

DeviceWrite[device,{param1val1,param2val2,}]
writes values of several parameters.

DetailsDetails

  • A device can be specified either by a DeviceObject or by a string representing a device class.
  • DeviceWrite is a blocking function; when called, it communicates with the device and does not return until it has finished writing data.
  • DeviceWrite[device,vals] returns vals, even if for some reason the write operation fails.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Open a demo device and write an expression to it:

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

Read from the device to verify successful writing:

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

Write a sequence of expressions and read the result:

In[4]:=
Click for copyable input
In[5]:=
Click for copyable input
Out[5]=

Close the device:

In[6]:=
Click for copyable input
Introduced in 2014
(10.0)