MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guide de l'utilisateur Page 64

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 63
3 Providing Hardware Information
3-20
Returning Warnings and Errors to the MATLAB Command Line
To return error or warning messages from your adaptor to the MATLAB command
line, use the adaptorError() and adaptorWarning() functions. These functions
implement an interface similar to the MATLAB error and warning functions. Using
these functions, you can display a text message at the MATLAB command line.
You must also include a message ID in your message using the format
<component>[:<component>]:<mnemonic>
where <component> and <mnemonic> are alphanumeric strings (for example,
'MATLAB:divideByZero'). The identifier can be used to enable or disable display of the
identified warning. For more information, type help warning or help error at the
MATLAB command line.
The following example outputs a warning message to the MATLAB command line.
imaqkit::adaptorWarn("MyDeviceAdaptor:constructor","In
constructor");
Vue de la page 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 171 172

Commentaires sur ces manuels

Pas de commentaire