Register or unregister hardware driver adaptor
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.
The hardware driver adaptor name. The supported adaptors are advantech, mcc, nidaq, parallel, and winsound.
Specifies that the hardware driver adaptor is to be unloaded.
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.
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.
The following command registers the sound card adaptor provided with the toolbox.
The following command registers the third-party adaptor myadaptor.dll. Note that you must supply the full pathname to daqregister.
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.