Hardware and Device Drivers

Registering the Hardware Driver Adaptor

When you first create a device object, the associated hardware driver adaptor is automatically registered so that the data acquisition engine can make use of its services.

The hardware driver adaptors included with the toolbox are all located in the daq/private directory. The full name for each adaptor is shown below.

Supported Vendors/Device Types and Full Adaptor Names

Vendor/Device Type

Full Adaptor Name

Advantech®

mwadvantech.dll

Measurement Computing™

mwmcc.dll

National Instruments®

mwnidaq.dll

Parallel ports

mwparallel.dll

Windows® sound cards

mwwinsound.dll

If for some reason a toolbox adaptor is not automatically registered, then you need to register it manually using the daqregister function. For example, to manually register the sound card adaptor:

daqregister('winsound');

If you are using a third-party adaptor, then you might need to register it manually. If so, you must supply the full pathname to daqregister. For example, to register the third-party adaptor myadaptor.dll:

daqregister('C:/MATLAB/toolbox/daq/myadaptors/myadaptor.dll')

Device Driver Registration

If you are using a Windows Vista™ or a Windows 7 system and cannot register device drivers, you could have UAC enabled on the system. Refer to this technical bulletin for more information.

Was this topic helpful?