DeviceReadBuffer
This feature is not supported on the Wolfram Cloud.

DeviceReadBuffer[device]
reads the complete contents of the buffer on a device.

DeviceReadBuffer[device,n]
reads n elements from the buffer.

DeviceReadBuffer[device,crit]
reads elements from the buffer until the device-specific criterion crit is met.

DeviceReadBuffer[device,crit,param]
reads elements associated with the parameter param.

DeviceReadBuffer[device,crit,{param1,param2,}]
reads elements associated with the .

DetailsDetails

  • A device can be specified either by a DeviceObject or by a string representing a device class.
  • DeviceReadBuffer is a blocking function; when called, it communicates with the device and does not return until it has the data it needs.
  • Not all devices have buffers. For those that do not, DeviceReadBuffer generates a message.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Open a demo device and read the contents of its buffer:

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

Read the specified number of elements from the buffer:

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