MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES User's Guide Page 64

  • Download
  • Add to my manuals
  • Print
  • Page
    / 172
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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");
Page view 63
1 2 ... 59 60 61 62 63 64 65 66 67 68 69 ... 171 172

Comments to this Manuals

No comments