Data Acquisition Toolbox    
getsample

Immediately acquire one sample

Syntax

Arguments

obj
An analog input object.
sample
A row vector containing one sample for each channel contained by obj.

Description

sample = getsample(obj) immediately returns a row vector containing one sample for each channel contained by obj.

Remarks

Using getsample is a good way to test your analog input configuration. Additionally:

Example

Create the analog input object ai and add eight channels to it.

The following command returns one sample for each channel.

See Also

Functions

getdata, peekdata


  getdata getvalue