MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Specifikace Strana 18

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 216
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 17
1 Getting Started with GUIDE
1-10
Programming the GUI M-file
After laying out your GUI, you can program the GUI M-file using the M-file
editor. GUIDE automatically generates this file from your layout the first time
you save or run the GUI. The GUI M-file
• Initializes the GUI
• Contains code to perform tasks before the GUI appears on the screen, such
as creating data or graphics
• Contains the callback functions that are executed each time a user clicks a
GUI component
Initially, each callback contains just a function definition line. You then use the
M-file editor to add code that makes the component function the way you want
it to. To open the M-file, click the M-file Editor icon on the Layout Editor
toolbar. The following figure shows the M-file for the GUI with Axes and Menu
template.
Zobrazit stránku 17
1 2 ... 13 14 15 16 17 18 19 20 21 22 23 ... 215 216

Komentáře k této Příručce

Žádné komentáře