Contenu principal

Cette page a été traduite par traduction automatique. Cliquez ici pour voir la dernière version en anglais.

Édition et test des pilotes d'instruments

Créer et modifier les pilotes d'instruments ; tester et vérifier la fonctionnalité des pilotes d'instruments

Les pilotes génériques permettent au Instrument Control Toolbox™ de communiquer avec des périphériques ou des logiciels qui n'utilisent pas de pilotes ou de protocoles standard. Vous créez un pilote générique à l’aide de l’éditeur de pilotes d’instruments. Voir Creating MATLAB Instrument Drivers pour plus d’informations sur l’utilisation de l’éditeur de pilotes d’instruments.

Après avoir créé un pilote, vous pouvez le tester à l’aide de l’outil de test de pilote d’instrument. L'outil fournit un environnement graphique pour créer un test afin de vérifier la fonctionnalité d'un pilote d'instrument MATLAB®. Vous pouvez vérifier le comportement des propriétés et des fonctions et exporter les résultats des tests dans divers formats. Voir Instrument Driver Testing Tool Overview .

Fonctions

développer tout

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

Rubriques

  • 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.