DeviceReadList

DeviceReadList[device,n]

reads from the specified device n times, returning a list of the results.

DeviceReadList[device,n,param]

reads the parameter param.

DeviceReadList[device,n,{param1,param2,}]

reads the list of parameters parami.

Details

  • DeviceReadList effectively performs n sequential reads on the device, as quickly as possible.
  • DeviceReadList[device,n] reads the default parameter from the device.
  • DeviceReadList is a blocking function; when called, it communicates with the device and does not return until it has the data it needs.
  • A device can be specified either by a DeviceObject or by a string representing a device class.

Examples

open allclose all

Basic Examples  (1)

Open the demo device:

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

Sequentially read the specified number of items from a demo device:

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

Repeatedly read a specified parameter:

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

Or multiple parameters:

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

Applications  (1)

See Also

DeviceReadTimeSeries  DeviceRead  DeviceReadBuffer  DeviceStreams  DeviceExecuteAsynchronous

Tutorials

Introduced in 2014
(10.0)