Previous Next        Current Page: NeXtMidas Training / Option Trees / Lab 1 / Solution
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
   + Overview   
   + Using an Option Tree   
   - Lab 1   
      - Instructions   
      - Solution   
   + Creating an Option Tree   
   + Command Dictionary   
   + Building an Option Tree   
   + Lab 2   
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   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Lab 1 (solution):
    • Here is what you should have done to add the option trees:
      nM> option
      Available Option Trees (<n> = index on path):
             AUDIO        = /home/burdell/nxm230/nxm/audio/
             DATABASE     = /home/burdell/nxm230/nxm/database/
         <1> DSP          = /home/burdell/nxm230/nxm/dsp/
         <2> HWC          = /home/burdell/nxm230/nxm/hwc/
             NMPOST       = /home/burdell/nxm230/nxm/nmpost/
             SERVLET      = /home/burdell/nxm230/nxm/servlet/
         <3> SYS          = /home/burdell/nxm230/nxm/sys/
             UCL          = /home/burdell/nxm230/nxm/ucl/
             XBC          = /home/burdell/nxm230/nxm/xbc/
      nM> path add ucl
      <Download the SAMPLEOPT option tree and expand it.>
      <In this example it was put in /home/burdell/sampleopt123.>
      nM> option sampleopt /home/burdell/sampleopt123/nxm/sampleopt
      nM> path add sampleopt
      nM> opt
      Available Option Trees (<n> = index on path):
             AUDIO        = /home/burdell/nxm230/nxm/audio/
             DATABASE     = /home/burdell/nxm230/nxm/database/
         <3> DSP          = /home/burdell/nxm230/nxm/dsp/
         <4> HWC          = /home/burdell/nxm230/nxm/hwc/
             NMPOST       = /home/burdell/nxm230/nxm/nmpost/
         <1> SAMPLEOPT    = /home/burdell/sampleopt123/nxm/sampleopt/
             SERVLET      = /home/burdell/nxm230/nxm/servlet/
         <5> SYS          = /home/burdell/nxm230/nxm/sys/
         <2> UCL          = /home/burdell/nxm230/nxm/ucl/
             XBC          = /home/burdell/nxm230/nxm/xbc/
    • Once you've added those option trees, please answer the following questions:
      1. What is the name of the switch for the KAISWIND command (in UCL) that indicates that "Output response should be complex"?
        The /CMPLX switch.
      2. When you run the DEMO command in the SAMPLEOPT option tree, what is plotted?
        A picture of a sunset.
      3. You now have two DEMO commands available (one in SAMPLEOPT, the other in SYS). Which one runs when you just type DEMO? Can you run the other one? If so, how?
        DEMO runs the one in SAMPLEOPT, DEMO;SYS runs the one in SYS.
      4. How do you change your homepath to be the mcr area of SAMPLEOPT?
        nM> home mcr sampleopt
      5. How do you change your OS's working directory to the mcr area of SAMPLEOPT?
        $ nmd mcr sampleopt