makemid

Convert driver to MATLAB instrument driver format

Syntax

makemid('driver')
makemid('driver', 'filename')
makemid('driver', 'type')
makemid('driver', 'filename', 'type')
makemid('driver', 'type', 'interface')
makemid('driver', 'filename', 'type', 'interface')

Arguments

'driver'

Name of driver being converted.

'filename'

Name of file that the converted driver is saved to. You may specify a full pathname. If an extension is not specified, the .mdd extension is used.

'type'

The type of driver the function looks for. By default, the function searches among all types.

'interface'

The IVI-COM interface to be used.

Description

makemid('driver') searches through known driver types for driver and creates a MATLAB® instrument driver representation of the driver. Known driver types include VXIplug&play, IVI-C, and IVI-COM. For driver you can use a Module (for IVI-C), a ProgramID (for IVI-COM), a LogicalName (for either IVI-C or IVI-COM), or the original VXIplug&play instrument driver name. The MATLAB instrument driver will be saved in the current working directory as driver.mdd

The MATLAB instrument driver can then be modified using midedit to customize the driver behavior, and may be used to instantiate a device object using icdevice.

makemid('driver', 'filename') creates and saves the MATLAB instrument driver using the name and path specified by filename.

makemid('driver', 'type') and makemid('driver', 'filename', 'type') override the default search order and look only for drivers whose type is type. Valid types are vxiplug&play, ivi-c, and ivi-com.

makemid('driver', 'type', 'interface') and makemid('driver', 'filename', 'type', 'interface') specify the IVI-COM driver interface to be used for the object. type must be ivi-com.

The function searches for the specified driver root interface. For example, if the driver supports the IIviScope interface, an interface value of IIviScope results in a device object that only contains the IVIScope class-compliant properties and methods.

Examples

To convert the driver hp34401 into the MATLAB instrument driver hp34401.mdd in the current working directory,

makemid('hp34401');

To convert the driver tktds5k into the MATLAB instrument driver with a specific name and location,

makemid('tktds5k', 'C:\MyDrivers\tektronix_5k.mdd');

To convert the IVI-C driver tktds5k into the MATLAB instrument driver tktds5k.mdd in the current working directory. This example causes the function to look for the driver only among the IVI-C drivers.

makemid('tktds5k', 'ivi-c');

To create the MATLAB instrument driver MyIviLogicalName.mdd from the IVI® logical name MyIviLogicalName,

makemid('MyIviLogicalName');

See Also

|

Was this topic helpful?