Documentation Center

  • Trial Software
  • Product Updates

Functions in Data Acquisition Toolbox

  • By Category | Alphabetical List
  • Hardware Discovery

    Session-Based Interface

    daq.getDevices Display available National Instruments devices
    daq.getVendors Display available vendors

    Legacy Interface

    daqhwinfo Data acquisition hardware information

    Install Hardware Support

    supportPackageInstaller Find and install support for third-party hardware or software

    Analog Input and Output

    Session-Based Interface

    Set Up Acquisition Session

    daq.createSession Create data acquisition session for specific vendor hardware
    daq.getDevices Display available National Instruments devices
    daq.getVendors Display available vendors

    Acquire Data

    addAnalogInputChannel Add analog input channel
    inputSingleScan Acquire single scan from all input channels
    startForeground Start foreground operations
    startBackground Start background operations
    removeChannel Remove channel from session object
    stop Stop background operation
    wait Block MATLAB until background operation completes

    Generate Signals

    addAnalogOutputChannel Add analog output channel
    queueOutputData Queue data to be output
    outputSingleScan Generate single scan on all output channels
    startForeground Start foreground operations
    startBackground Start background operations
    addlistener Create event listener
    stop Stop background operation
    wait Block MATLAB until background operation completes

    Legacy Interface

    Acquire Data

    analoginput Create analog input object
    addchannel Add hardware channels to analog input or output object
    start Start device object
    peekdata Preview most recent acquired analog input data
    getdata Extract analog input data, time, and event information from data acquisition engine
    getsample Immediately acquire one analog input sample
    putdata Queue analog output data in engine for eventual output
    putsample Immediately output one analog output sample
    stop Stop device object
    addmuxchannel Add hardware channels to analog input objects when using National Instruments multiplexer board
    islogging Determine whether analog input object is logging data
    trigger Manually execute trigger for analog input or output object
    wait Wait until analog input or output device object stops running
    flushdata Remove analog input data from data acquisition engine

    Generate Signals

    analogoutput Create analog output object
    issending Determine whether analog output object is sending data
    start Start device object
    stop Stop device object
    trigger Manually execute trigger for analog input or output object
    wait Wait until analog input or output device object stops running

    Analog Input Data Visualization

    softscope Open data acquisition oscilloscope

    Digital Input and Output

    Session-Based Interface

    Set Up Acquisition Session

    daq.createSession Create data acquisition session for specific vendor hardware
    daq.getDevices Display available National Instruments devices
    daq.getVendors Display available vendors

    Acquire and Generate Digital Data

    addDigitalChannel Add digital channel
    inputSingleScan Acquire single scan from all input channels
    outputSingleScan Generate single scan on all output channels
    startForeground Start foreground operations
    startBackground Start background operations
    addClockConnection Add clock connection
    stop Stop background operation
    wait Block MATLAB until background operation completes
    decimalToBinaryVector Convert decimal value to binary vector
    binaryVectorToDecimal Convert binary vector value to decimal value
    hexToBinaryVector Convert hexadecimal value to binary vector
    binaryVectorToHex Convert binary vector value to hexadecimal

    Legacy Interface

    digitalio Create digital I/O object
    addline Add hardware lines to digital I/O object
    putvalue Write values to digital output lines
    binvec2dec Convert digital input and output binary vector to decimal value
    dec2binvec Convert digital input and output decimal value to binary vector
    isdioline Check for lines

    Counter and Timer Input and Output

    Set Up Acquisition Session

    daq.createSession Create data acquisition session for specific vendor hardware
    daq.getDevices Display available National Instruments devices
    daq.getVendors Display available vendors

    Acquire and Generate Counter Data

    addCounterInputChannel Add counter input channel
    addCounterOutputChannel Add counter output channel
    inputSingleScan Acquire single scan from all input channels
    resetCounters Reset counter channel to initial count
    startForeground Start foreground operations
    removeChannel Remove channel from session object
    stop Stop background operation
    wait Block MATLAB until background operation completes

    Multichannel Audio Input and Output

    Set Up Acquisition Session

    daq.createSession Create data acquisition session for specific vendor hardware
    daq.getDevices Display available National Instruments devices
    daq.getVendors Display available vendors

    Acquire and Generate Audio Data

    addAudioInputChannel Add audio input channel
    addAudioOutputChannel Add audio output channel
    startForeground Start foreground operations
    startBackground Start background operations
    removeChannel Remove channel from session object
    stop Stop background operation
    wait Block MATLAB until background operation completes

    Simultaneous and Synchronized Operations

    Session-Based Interface

    addTriggerConnection Add trigger connection
    addClockConnection Add clock connection
    removeConnection Remove clock or trigger connection
    Was this topic helpful?