Data Acquisition Toolbox    
daqregister

Register or unregister a hardware driver adaptor

Syntax

Arguments

'adaptor'
Name of the hardware driver adaptor. The supported adaptors are nidaq, cbi, hpe1432, and winsound.
'unload'
Specifies that the hardware driver adaptor is to be unloaded.
out
Captures the message returned by daqregister.

Description

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

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

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

Remarks

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 may need to register third-party adaptors manually. In either case, you must install the associated hardware driver before registration can occur.

Example

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.


 daqread daqreset