aich (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: daq

Requires: MathScript RT Module (Windows, Linux)

Syntax

data = aich(device, channels)

data = aich(device, channels, limits)

[data, error] = aich(device, channels)

[data, error] = aich(device, channels, limits)

Description

Acquires exactly one sample from each of the given channels of a specified device.

Examples

Inputs

Name Description
device Specifies the device name. device is a string.
channels Specifies the channels from which to acquire samples. channels is a vector of positive integers.
limits Specifies the lowest and highest signal values you expect to acquire. limits is a two-element vector with the following syntax: [lowest, highest]. The default is [-10, 10].

Outputs

Name Description
data Returns the acquired samples from each of the channels. data is a real vector of the same size as channels.
error Returns 0 if the data acquisition task is successful. Otherwise, this function returns -1. error is a scalar.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

DEVICE = 'Dev1';
CHANNELS = [0, 1, 2];
LIMITS = [-10, 10];
DATA = aich(DEVICE, CHANNELS, LIMITS)

Related Topics

aiwf
aoch
aowf
dioread
diowrite

文章是否对您有帮助?

没有帮助