Main Content

本页采用了机器翻译。点击此处可查看最新英文版本。

仪器驱动编辑和测试

创建和修改仪器驱动;测试和验证仪器驱动功能

通用驱动允许 Instrument Control Toolbox™ 与不使用行业标准驱动或协议的设备或软件进行通信。您可以使用仪器驱动编辑器创建通用驱动。有关使用仪器驱动编辑器的信息,请参阅Creating MATLAB Instrument Drivers

创建驱动后,您可以使用仪器驱动测试工具对其进行测试。该工具提供了一个图形环境,用于创建测试来验证 MATLAB® 仪器驱动的功能。您可以验证属性和功能行为并以多种格式导出测试结果。请参阅Instrument Driver Testing Tool Overview

函数

全部展开

instrhwinfoInformation about available hardware
connectConnect device object to instrument
invokeExecute driver-specific function on device object
selftestRun instrument self-test
dispDisplay instrument object summary information
getInstrument object properties
setConfigure or display instrument object properties
inspectOpen Property Inspector
methodsClass method names and descriptions
saveSave instrument objects and variables to MAT file
propinfoInstrument object property information
disconnectDisconnect device object from instrument
deleteRemove instrument objects from memory
clearRemove instrument objects from MATLAB workspace

主题

  • Creating MATLAB Instrument Drivers

    How to create, modify, save, and verify instrument drivers using the MATLAB Instrument Driver Editor.

  • Properties

    Defining instrument functionality as properties of the device object to ease communications with your instrument.

  • Functions

    Defining instrument functionality as functions of the device object to ease communications with your instrument.

  • Groups

    Combining common capabilities of the device object.

  • Using Existing Drivers

    Adapting existing drivers for your instrument.

  • Setting Up Your Test

    Providing global information for your test, including name, description, driver, interface, and preferences.

  • Defining Test Steps

    Creating steps to test setting property values, getting property values, and driver functions.

  • Saving Your Test

    Saving your test for future midtest sessions, or as code, or as a driver function.

  • Testing and Results

    Running a complete or partial test; exporting or saving test results.

  • MATLAB Instrument Driver Editor Overview

    An explanation of MATLAB instrument drivers, their features, capabilities, and usage.

  • Instrument Driver Testing Tool Overview

    An explanation of the MATLAB Instrument Driver Testing Tool, its capabilities, and usage.