Products & Services Solutions Academia Support User Community Company

Learn more about Data Acquisition Toolbox   

OutOfDataMode - Specify how value held by analog output subsystem is determined

Description

When queued data is output to the analog output (AO) subsystem, the hardware typically holds a value. For National Instruments and Measurement Computing devices, the value held is determined by OutOfDataMode.

OutOfDataMode can be Hold or DefaultValue. If OutOfDataMode is Hold, then the last value output is held by the AO subsystem. If OutOfDataMode is DefaultValue, then the value specified by the DefaultChannelValue property is held by the AO subsystem.

Characteristics

Vendor

Measurement Computing, National Instruments

Usage

AO, common to all channels

Access

Read/write

Data type

String

Read-only when running

Yes

Values

{Hold}

Hold the last output value.

DefaultValue

Hold the value specified by DefaultChannelValue.

Examples

Create the analog output object ao and add two channels to it.

ao = analogoutput('nidaq','Dev1');
addchannel(ao,0:1);

You can configure ao so that when queued data is finished being output, a value of 1 volt is held for both channels.

ao.OutOfDataMode = 'DefaultValue';
ao.Channel.DefaultChannelValue = 1.0;

See Also

Properties

DefaultChannelValue

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS