6-14-07
How to Use XBasic Integrated Development Environment
OEES 215
Back to Main Page
 
  1. Open XBasic
  2. Be careful not to have any part of an XBasic window go off the edge of the screen. XBasic doesn't handle this well and text in the window will be smeared. Re-sizing XBasic windows, however, works fine.
  3. In the main window, click File, Text-load and open S215-XB-PIC-simulation-template.x
  4. Save the program using another file name by first clicking File, Save, but don't hit ENTER yet.
  5. In the Select File window that comes up, go to the upper right-hand corner and change the file name; then, hit ENTER.
  6. Type in your  program (main routine) inside the Entry function.
  7. Click the single-floppy icon and save your program.
  8. Click the yellow folder just below Edit on the menu bar. This will load your program.
    • Notice that only the Prolog appears.
    • The Prolog is that part of the program where all the functions you'll be using are listed.
  9. To run your program, click the red exclamation mark at the left on the third toolbar.
  10. Input and output will take place in the Console window.
    • When doing input, be sure the Console window is the active window. (The active window has a dark blue title bar.)
    • If the Console window isn't active, click anywhere on it.
  11. To modify a function in your program, click the word Prolog on the right side of the main window's title bar area.
    • Next, double click the function you'd like to modify.
    • To modify other functions, click the same area where the word Prolog used to be. Then, double click the function you wish to modify.
  12. To make modifications while viewing all the functions, click File, Text Load on the menu bar.
    • Then, load your program.
    • When you're done with the modifications, click the single floppy icon to save your program.
    • Then, click the yellow folder below Edit.
    • Open your program.
  13. Run your modified program by clicking on the red exclamation mark.
 
Back to Main Page