calldaqlib
Control device configuration and properties using task-handle-based NI-DAQmx library functions
Since R2026a
Syntax
Description
calldaqlib(
configures the daqObj,configFunction,param1,...,paramN)DataAcquisition object daqObj using the
NI-DAQmx function specified in configFunction and the required function
parameters specified in param1,...,paramN. For information on the
NI-DAQmx function names and their required input parameters, see NI-DAQmx C Reference. Exclude the task handle from the list of parameters because
the daqObj owns the task handle.
calldaqlib(
sets the channel property for the daqObj,setterFunction,param1,...,paramN,propValue)DataAcquisition object
daqObj to propValue using the NI-DAQmx setter
function specified in setterFunction. Some NI-DAQmx functions might
require additional parameters, such as channel, device, or attribute information. Refer to
NI-DAQmx C Reference to identify the required input parameters of the NI-DAQmx
function and specify them in param1,...,paramN.
retrieves the values of the channel property using the NI-DAQmx getter function specified in
propValues = calldaqlib(daqObj,getterFunction,param1,...,paramN)getterFunction. The function returns the values as a dictionary.
calldaqlib(
resets the channel property to its default value using the NI-DAQmx reset function specified
in daqObj,resetFunction,param1,...,paramN)resetFunction.
To transition the configuration code for your data acquisition device from C to MATLAB®, see Code Transition Help.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2026a
See Also
Functions
daq|daqlist|addinput|addoutput|addbidirectional|removechannel