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:

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

Repeatedly read a specified parameter:

Or multiple parameters:

Applications  (1)

Open the default camera attached to your system:

Set an appropriate frame rate and capture a sequence of four frames:

Wolfram Research (2014), DeviceReadList, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceReadList.html.

Text

Wolfram Research (2014), DeviceReadList, Wolfram Language function, https://reference.wolfram.com/language/ref/DeviceReadList.html.

CMS

Wolfram Language. 2014. "DeviceReadList." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DeviceReadList.html.

APA

Wolfram Language. (2014). DeviceReadList. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DeviceReadList.html

BibTeX

@misc{reference.wolfram_2023_devicereadlist, author="Wolfram Research", title="{DeviceReadList}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DeviceReadList.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_devicereadlist, organization={Wolfram Research}, title={DeviceReadList}, year={2014}, url={https://reference.wolfram.com/language/ref/DeviceReadList.html}, note=[Accessed: 19-March-2024 ]}