Skip to Main Content Skip to Search
Product Documentation

Base Property Reference


Base properties apply to all supported hardware subsystems of a given type (analog input, analog output, or digital I/O). For example, the SampleRate property is supported for all analog input subsystems regardless of the vendor.

The properties are categorized according to these subsystems:

Analog Input PropertiesAnalog input base properties are divided into two main categories: common properties and channel properties. Common properties apply to every channel contained by the analog input object, while channel properties can be configured for individual channels.
Analog Output PropertiesAnalog output base properties are divided into two main categories: common properties and channel properties. Common properties apply to every channel contained by the analog output object, while channel properties can be configured for individual channels.
Digital I/O PropertiesDigital I/O base properties are divided into two main categories: common properties and line properties. Common properties apply to every line contained by the digital I/O object, while line properties can be configured for individual lines.
Session-Based InterfaceSession-based interface properties for analog input (AI) and analog output (AO) devices

Depending on the hardware device you are using, additional property names or property values might be present. The additional property names are described in Device-Specific Properties — Alphabetical List. For example, only analog input and analog output objects associated with a sound card have a BitsPerSample property. The additional property values are also device-specific but are included in this chapter. For example, all supported devices have an InputType property, but the value AC-Coupled is unique to analog input objects associated with a sound card.

Analog Input Properties

Common Properties

The analog input common properties are grouped into the following categories based on usage.

Analog Input Basic Setup Properties

SampleRateSpecify per-channel rate at which analog data is converted to digital data, or vice versa
SamplesPerTriggerSpecify number of samples to acquire for each channel group member for each trigger that occurs
TriggerTypeSpecify type of trigger to execute

Analog Input Logging Properties

LogFileNameSpecify name of disk file information is logged to
LoggingIndicate whether data is being logged to memory or disk file
LoggingModeSpecify destination for acquired data
LogToDiskModeSpecify whether data, events, and hardware information are saved to one or more disk files

Analog Input Trigger Properties

InitialTriggerTimeAbsolute time of first trigger
ManualTriggerHwOnSpecify hardware device starts at manual trigger
TriggerChannelSpecify channel serving as trigger source
TriggerConditionSpecify condition that must be satisfied before trigger executes
TriggerConditionValueSpecify voltage value(s) that must be satisfied before trigger executes
TriggerDelaySpecify delay value for data logging
TriggerDelayUnitsSpecify units in which trigger delay data is measured
TriggerFcnSpecify callback function to execute when trigger occurs
TriggerRepeatSpecify number of additional times trigger executes
TriggersExecutedIndicate number of triggers that execute
TriggerTypeSpecify type of trigger to execute

Analog Input Status Properties

LoggingIndicate whether data is being logged to memory or disk file
RunningIndicate whether device object is running
SamplesAcquiredIndicate number of samples acquired per channel
SamplesAvailableIndicate number of samples available per channel in engine

Analog Input Hardware Configuration Properties

ChannelSkewSpecify time between consecutive scanned hardware channels
ChannelSkewModeSpecify how channel skew is determined
ClockSourceSpecify clock that governs hardware conversion rate
InputTypeSpecify analog input hardware channel configuration
SampleRateSpecify per-channel rate at which analog data is converted to digital data, or vice versa

Analog Input Callback Properties

DataMissedFcnSpecify callback function to execute when data is missed
InputOverRangeFcnSpecify callback function to execute when acquired data exceeds valid hardware range
RuntimeErrorFcnSpecify callback function to execute when run-time error occurs
SamplesAcquiredIndicate number of samples acquired per channel
SamplesAcquiredFcnSpecify callback function to execute when predefined number of samples is acquired for each channel group member
SamplesAcquiredFcnCountSpecify number of samples to acquire for each channel group member before samples acquired event is generated
StartFcnSpecify callback function to execute before device object runs
StopFcnSpecify callback function to execute after device object runs
TimerFcnSpecify callback function to execute when predefined time period passes
TimerPeriodSpecify time period between timer events
TriggerFcnSpecify callback function to execute when trigger occurs

Analog Input General Purpose Properties

BufferingConfigSpecify per-channel allocated memory
BufferingModeSpecify how memory is allocated
ChannelContain hardware channels added to device object
EventLogStore information for specific events
NameSpecify descriptive name for the channel
TagSpecify device object label
TimeoutSpecify additional waiting time to extract or queue data
TypeIndicate device object type, channel, or line
UserDataStore data to associate with device object

Channel Properties

The analog input channel properties are given below.

Analog Input Channel Properties

ChannelNameSpecify descriptive channel name
HwChannelSpecify hardware channel ID
HwLineSpecify hardware line ID
IndexMATLAB index of hardware channel or line
InputRangeSpecify range of analog input subsystem
NativeOffsetIndicate offset to use when converting between native data format and doubles
NativeScalingIndicate scaling to use when converting between native data format and doubles
ParentIndicate parent (device object) of channel or line
SensorRangeSpecify range of data expected from sensor
TypeIndicate device object type, channel, or line
UnitsSpecify engineering units label
UnitsRangeSpecify range of data as engineering units

Analog Output Properties

Common Properties

The analog output common properties are grouped into the following categories based on usage.

Analog Output Basic Setup Properties

SampleRateSpecify per-channel rate at which analog data is converted to digital data, or vice versa
TriggerTypeSpecify type of trigger to execute

Analog Output Trigger Properties

InitialTriggerTimeAbsolute time of first trigger
TriggerFcnSpecify callback function to execute when trigger occurs
TriggersExecutedIndicate number of triggers that execute
TriggerTypeSpecify type of trigger to execute

Analog Output Status Properties

RunningIndicate whether device object is running
SamplesAvailableIndicate number of samples available per channel in engine
SamplesOutputIndicate number of samples output per channel from engine
SendingIndicate whether data is being sent to hardware device

Analog Output Hardware Configuration Properties

ClockSourceSpecify clock that governs hardware conversion rate
SampleRateSpecify per-channel rate at which analog data is converted to digital data, or vice versa

Analog Output Data Management Properties

MaxSamplesQueuedIndicate maximum number of samples that can be queued in engine
RepeatOutputSpecify number of additional times queued data is output
TimeoutSpecify additional waiting time to extract or queue data

Analog Output Callback Properties

RuntimeErrorFcnSpecify callback function to execute when run-time error occurs
SamplesOutputFcnSpecify callback function to execute when predefined number of samples is output for each channel group member
SamplesOutputFcnCountSpecify number of samples to output for each channel group member before samples output event is generated
StartFcnSpecify callback function to execute before device object runs
StopFcnSpecify callback function to execute after device object runs
TimerFcnSpecify callback function to execute when predefined time period passes
TimerPeriodSpecify time period between timer events
TriggerFcnSpecify callback function to execute when trigger occurs

Analog Output General Purpose Properties

BufferingConfigSpecify per-channel allocated memory
BufferingModeSpecify how memory is allocated
ChannelContain hardware channels added to device object
EventLogStore information for specific events
NameSpecify descriptive name for the channel
OutOfDataModeSpecify how value held by analog output subsystem is determined
TagSpecify device object label
TypeIndicate device object type, channel, or line
UserDataStore data to associate with device object

Channel Properties

The analog output channel properties are given below.

Analog Output Channel Properties

ChannelNameSpecify descriptive channel name
DefaultChannelValueSpecify value held by analog output subsystem
HwChannelSpecify hardware channel ID
IndexMATLAB index of hardware channel or line
NativeOffsetIndicate offset to use when converting between native data format and doubles
NativeScalingIndicate scaling to use when converting between native data format and doubles
OutputRangeSpecify range of analog output hardware subsystem
ParentIndicate parent (device object) of channel or line
TypeIndicate device object type, channel, or line
UnitsSpecify engineering units label
UnitsRangeSpecify range of data as engineering units

Digital I/O Properties

Common Properties

The digital I/O common properties are given below.

Digital I/O Common Properties

LineContain hardware lines added to device object
NameSpecify descriptive name for the channel
RunningIndicate whether device object is running
TagSpecify device object label
TimerFcnSpecify callback function to execute when predefined time period passes
TimerPeriodSpecify time period between timer events
TypeIndicate device object type, channel, or line
UserDataStore data to associate with device object

Line Properties

The digital I/O line properties are given below.

Digital I/O Line Properties

DirectionSpecify whether line is for input or output
HwLineSpecify hardware line ID
IndexMATLAB index of hardware channel or line
LineNameSpecify descriptive line name
ParentIndicate parent (device object) of channel or line
PortSpecify port ID
TypeIndicate device object type, channel, or line

Getting Command-Line Property Help

To get command-line property help, use the daqhelp function. For example, to get help for the SampleRate property, type:

daqhelp SampleRate

You can also get property characteristics, such as the default property value, using the propinfo function. For example, suppose you create the analog input object ai for a sound card and you want to find the default value for the SampleRate property.

ai = analoginput('winsound');
out = propinfo(ai,'SampleRate');
out.DefaultValue
ans =
        8000

Session-Based Interface

Properties methods used with the session-based interface are listed below.

ActiveEdgeRising or falling edges of EdgeCount signals
ActivePulseActive pulse measurement of PulseWidth counter channel
ADCTimingModeSet channel timing mode
BridgeModeSpecify analog input device bridge mode
ChannelsArray of channel objects associated with session object
ConnectionsArray of connections in a session
CountDirectionSpecify direction of counter channel
CouplingSpecify input coupling mode
DestinationIndicates trigger destination terminal
DeviceAnalog and counter channel device
DurationInSecondsSpecify duration of acquisition
DutyCycleDuty cycle of counter output channel
EncoderTypeEncoding type of counter channel
ExcitationCurrentVoltage of external source of excitation
ExcitationSourceExternal source of excitation
ExcitationVoltageVoltage of excitation source
ExternalTriggerTimeoutIndicate if external trigger timed out
FrequencyFrequency of generated pulses on counter output channel
IDAnalog and counter channel ID
IdleStateDefault state of counter output channel
InitialCountSpecify initial count point
InitialDelayDelay until output channel generates pulses
InputTypeSpecify analog input hardware channel configuration
IsContinuousSpecify if operation continues until manually stopped
IsDoneIndicate if operation is complete
IsLoggingIndicate if hardware is acquiring or generating data
IsNotifyWhenDataAvailableExceedsAutoControl if NotifyWhenDataAvailableExceeds is set automatically
IsNotifyWhenScansQueuedBelowAutoControl if NotifyWhenScansQueuedBelow is set automatically
IsRunningIndicate if operation is still in progress
IsSimulatedIndicate if device is simulated
IsWaitingForExternalTriggerIndicates if synchronization is waiting for an external trigger
MeasurementType Type counter channel measurement
NameSpecify descriptive name for the channel
NominalBridgeResistanceResistance of sensor
NotifyWhenDataAvailableExceedsControl firing of DataAvailable event
NotifyWhenScansQueuedBelowControl firing of DataRequired event
NumberOfScansNumber of scans for operation when starting
R0Specify resistance value
RateRate of operation in scans per second
RateLimitLimit of rate of operation based on hardware configuration
RTDConfigurationSpecify wiring configuration of RTD device
RTDTypeSpecify sensor sensitivity
ScansAcquiredNumber of scans acquired during operation
ScansOutputByHardwareIndicate number of scans output by hardware
ScansQueuedIndicate number of scans queued for output
SensitivitySensitivity of an analog channel
ShuntLocation Indicate location of channel's shunt resistor
ShuntResistanceResistance value of channel's shunt resistor
SourceIndicates trigger source terminal
TerminalPFI terminal of counter subsystem
TerminalsTerminals available on device or CompactDAQ chassis
ThermocoupleTypeSelect thermocouple type
TriggerConditionSpecify condition that must be satisfied before trigger executes
TriggersPerRunIndicate the number of times the trigger executes in an operation
TriggersRemainingIndicates the number of trigger to execute in an operation
TriggerTypeType of trigger executed
UnitsSpecify unit of RTD measurement
VendorVendor information associated with session object
ZResetConditionReset condition for Z-indexing
ZResetEnableEnable reset for Z-indexing
ZResetValueReset value for Z-indexing
  


Recommended Products

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

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