DeviceReadTimeSeries

DeviceReadTimeSeries[device,{t,dt}]

repeatedly reads default items from the specified device at interval dt for a total time t, returning a time series of the resulting values.

DeviceReadTimeSeries[device,{t,dt},param]

repeatedly reads the parameter param and returns a time series of its values.

DeviceReadTimeSeries[device,{t,dt},{param1,param2,}]

repeatedly reads the parami and returns a time series of their values.

Details

  • The time parameters dt and t can be Quantity objects containing units. If they are given as pure numbers, they are assumed to be in units of seconds.
  • DeviceReadTimeSeries is a blocking function that does not return until it has collected data for time t.
  • A device can be specified either by a DeviceObject or by a string representing a device class.
  • A component of a TimeSeries object ts corresponding to parami can be obtained from ts["PathComponent",i].
  • For string parameters, a component can typically be obtained from ts["parami"].

Examples

open allclose all

Basic Examples  (2)

Open a demo device:

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

Capture a three-second time series at 0.1-second intervals:

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

Plot the time series:

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

Repeatedly read a list of parameters from a device and plot the resulting time series:

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

Plot a time series for the given parameter:

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

Applications  (1)

Properties & Relations  (2)

See Also

DeviceReadList  DeviceReadBuffer  DeviceStreams  DeviceExecuteAsynchronous  TimeSeries  EventSeries

Tutorials

Introduced in 2014
(10.0)