MATLAB XPC TARGET 4 - DEVICE DRIVERS User's Guide Page 45

  • Download
  • Add to my manuals
  • Print
  • Page
    / 111
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 44
Sample Driver Mask
3 Select the Initialization tab . The tab displays the dialog v ari ables you
entered in the Parameters tab.
4 In the Initialization code section, type
phase = 2;
[baseDec, maskDisplay, mas kDes cription] =
maddiamondmm32(phase, configuration, firstCha n,
numChans, range, base);
set_param(gcb, 'MaskDescription', maskDescription );
set_param(gcb, 'MaskDisplay', maskDisplay);
where maddia mondmm32 references the m addiamondmm32.m file for the
driver.
In this file, you should check the range values of the parameters. C hecking
the mask here will catch illegal values early in the build process.
4-9
Page view 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 110 111

Comments to this Manuals

No comments