Previous Next        Current Page: NeXtMidas Training / X-Midas Interoperability / Lab 1 / Instructions
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
   + Overview   
   + XBC   
   - Lab 1   
      - Instructions   
      - Solution   
   + NeXtOpt   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • This lab requires an XBC-compatible Fortran compiler.
  • Lab 1 (Part A):
    • Set the NM_FORTRAN environment variable to indicate your Fortran compiler:
      Intel Fortran Compiler 11 (or later) NM_FORTRAN=ifort
      setenv NM_FORTRAN ifort
    • Add the XBC option tree to your path and build it.
      nM> path add xbc
      nM> make all xbc
  • Lab 1 (Part B):
    • Create a host area in your option tree (if it does not exist yet).
    • Copy newrate.for and newrate.inc into the host area of your option tree.
    • Create a buildopt.mm for your option tree in the mcr area.
      • See earlier slide for details.
    • Use UPDATE to add NEWRATE to the command dictionary.
      • It should take in 5 arguments named: IN=, OUT=, RATE=, SYNC=, and FILTER= (no default values need be specified).
      nM> update newrate
    • Build your option tree with NEWRATE in it.
      nM> make all train
    • Test NEWRATE. Since you are not expected to know how to use NEWRATE a test macro has been provided:
      • Code: test_newrate.mm
      • You will need to save the file as test_newrate.mm in the test area of your option tree.
      nM> home test train
      nM> %test_newrate 
  • Lab 1 (Part C):
    • Copy the X-Midas explain file newrate.exp into the exp area of your option tree.
      • Code: newrate.exp
      • You will need to save the file as newrate.exp.
    • Fix the explain file so it matches NeXtMidas standards:
      • Fix the names of the input arguments so they match the names in the command dictionary.
      • For now, remove the control widgets section.

back