Previous Next         Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Lab 7 / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
   + Macro Basics   
   + Lab 1   
   + Lab 2   
   + Loops and Control Structures   
   + Lab 3   
   + Lab 4*   
   + Procedures and Subroutines   
   + Lab 5   
   + Lab 6*   
   + Pipes in a Macro   
   - Lab 7   
      - Instructions   
      - Solution   
   + Lab 8   
   + Messages in a Macro   
   + Lab 9   
   + Lab 10   
Macros - Part 2 (Graphics)   
Primitives   
Installing NeXtMidas   
Applets & WebStart   
Mapping (NeXtEarth)   
Remote Midas InterFace (RMIF)   
Using NetBeans   
X-Midas Interoperability   
Remoting an X-Midas App.   


  • Lab 7:
    • Create a new macro called mcrlab7.mm.
    • Inside the macro make a pipe section.
    • The first line inside the pipe section should be: (Provides a way to stop the macro, more details about PANEL will be covered in the Graphics module.)
      PANEL
    • In the pipe section create a WAVEFORM.
      • Use FORM=SF and ELEM=100k.
      • The output should go to a pipe named _wave.
    • Compute the FFT of the waveform.
      • Use the /DBF switch on FFT.
      • The FFT should take in _wave and output to a new pipe named _waveb.
    • PLOT the output from FFT.
    • Now run the macro.
      • You should see a raster in the PLOT window.
      • To exit just click the 'X' in the upper corner of the panel.