DeviceWriteBuffer
This feature is not supported on the Wolfram Cloud.

DeviceWriteBuffer[device,vals]
fills the buffer on a device with the values vals.

DeviceWriteBuffer[device,paramvals]
fills the buffer associated with the parameter param with the values vals.


fills the buffers associated with the with the corresponding values .

DetailsDetails

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

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Write a list of strings to the buffer of a demo device and retrieve the result:

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

Close the device:

In[4]:=
Click for copyable input

Write a a list of values to the buffer associated with a specified parameter.

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

Read the buffer to verify successful writing:

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