Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

dioread (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the daq class.

Syntax

data = dioread(device, channel, lines)

[data, error] = dioread(device, channel, lines)

Description

Acquires exactly one sample from each of the lines of a given digital channel on a specified device.

Examples

Inputs

Name Description
device Specifies the device name. device is a string.
channel Specifies the channel from which to acquire samples. channel is a positive integer.
lines Specifies the lines of channel from which you want to acquire samples. lines is a vector of positive integers.

Outputs

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

Examples

DEVICE = 'Dev1';
CHANNEL = 0;
LINES = 0;
DATA = dioread(DEVICE, CHANNEL, LINES);

Related Topics

aich
aiwf
aoch
aowf
diowrite


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit