Documentation Center

  • Trial Software
  • Product Updates

daqregister

Register or unregister hardware driver adaptor

Syntax

daqregister('adaptor')
daqregister('adaptor','unload')
out = daqregister(...)

    Note:   You cannot use the legacy interface on 64–bit MATLAB®. See Session-Based Interface to acquire and generate data.

Arguments

'adaptor'

The hardware driver adaptor name. The supported adaptors are advantech, mcc, nidaq, parallel, and winsound.

'unload'

Specifies that the hardware driver adaptor is to be unloaded.

out

Captures the message returned by daqregister.

    Note:   The Traditional NI-DAQ adaptor will be deprecated in a future version of the toolbox. If you create a Data Acquisition Toolbox™ object for Traditional NI-DAQ adaptor beginning in R2008b, you will receive a warning stating that this adaptor will be removed in a future release.

    The Parallel adaptor will be deprecated in a future version of the toolbox. If you create a Data Acquisition Toolbox™ object for 'parallel' beginning in R2008b, you will receive a warning stating that this adaptor will be removed in a future release. See the supported hardware page at www.mathworks.com/products/daq/supportedio.html for more information.

Description

daqregister('adaptor') registers the hardware driver adaptor specified by adaptor.

    Notes   You must have administrative privileges to register or unregister hardware driver adaptors.

    If you are using a Windows Vista™ machine, you must log on with Administrative privileges and run MATLAB. You should then execute daqregister with elevated permissions. This will allow the User Account Control feature on your computer to run correctly.

For third-party adaptors, adaptor must include the full pathname.

daqregister('adaptor','unload') unregisters the hardware driver adaptor specified by adaptor. For third-party adaptors, adaptor must include the full pathname.

out = daqregister(...) captures the resulting message in out.

Examples

The following command registers the sound card adaptor provided with the toolbox.

daqregister('winsound');

The following command registers the third-party adaptor myadaptor.dll. Note that you must supply the full pathname to daqregister.

daqregister('D:/MATLABR12/toolbox/daq/myadaptors/
myadaptor.dll');

More About

expand all

Tips

A hardware driver adaptor must be registered so the data acquisition engine can make use of its services. Unless an adaptor is unloaded, registration is required only once.

For adaptors that are included with the toolbox, registration occurs automatically when you first create a device object. However, you might need to register third-party adaptors manually. In either case, you must install the associated hardware driver before registration can occur.

Was this topic helpful?