Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

diowrite (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: daq

Requires: MathScript RT Module (Windows, Linux)

Syntax

diowrite(device, channel, lines, data)

error = diowrite(device, channel, lines, data)

Description

Outputs exactly one sample to 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 to which you want to output samples. channel is a positive integer.
lines Specifies the lines of channel to which you want to output samples. lines is a vector of positive integers.
data Specifies the samples you want to output to each of the lines in channel. data can contain numeric values of 0 or 1. data is a real vector of the same size as lines.

Outputs

Name Description
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';
CHANNEL = 0;
LINES = [0, 1, 2, 3];
DATA = [0, 0, 1, 1];
ERROR = diowrite(DEVICE, CHANNEL, LINES, DATA)

Related Topics

aich
aiwf
aoch
aowf
dioread


 

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