icdevice
R2026bCreate device object
Description
Use icdevice to create a MATLAB® device object.
Creation
Syntax
Description
creates the device object devObj = icdevice(driverName,hwObj)devObj using the MATLAB interface instrument driver specified by driverName.
The function communicates with the instrument through the interface object,
hwObj.
creates a device object devObj = icdevice(driverName,rsrcName)devObj, using the MATLAB VXIplug&play instrument driver or MATLAB
IVI® instrument driver specified by driverName.
The function communicates with the instrument through the resource specified by
rsrcName. If a MATLAB instrument driver wrapper for the underlying
VXIplug&play or IVI driver does not already exist, use ividev instead.
constructs a device object devObj = icdevice(driverName)devObj, using the MATLAB
IVI instrument driver specified by driverName. The
underlying IVI driver requires a logical name.
specifies one or more property values using name-value arguments.devObj = icdevice(___,Name=Value)
Note
When deploying code using IVI-C or VXIplug&play drivers, executing your code will generate additional files in the folder specified by executing the following code at the MATLAB prompt:
fullfile(tempdir,'ICTDeploymentFiles',sprintf('R%s',version('-release')))
On all supported platforms, a file with the name
MATLABPrototypeFor<driverName>.m is generated, where
<driverName> the name of the IVI-C or
VXIplug&play driver. With 64-bit MATLAB on Windows®, a second file by the name
<driverName>_thunk_pcwin64.dll is generated. When creating your
deployed application or shared library, manually include these generated files. If using
the icdevice function, remember to also manually include the MDD-file
in the deployed application or shared library. For more information on including
additional files refer to the MATLAB
Compiler™ documentation.
Input Arguments
Name-Value Arguments
Output Arguments
Properties
Object Functions
connect | Connect device object to instrument |
disconnect | Disconnect device object from instrument |
invoke | Execute driver-specific function on device object |
icdevicefind | Find device connections |
devicereset | Reset instrument |
selftest | Run instrument self-test |
geterror | Check and return error message from instrument |
get | Instrument object properties |
set | Configure or display instrument object properties |
delete | Remove instrument objects from memory |