Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Pipes in a Macro / Lab 1 - Macro Pipes / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
   + Macro Basics   
   + Loops and Control Structures   
   + Procedures and Subroutines   
   - Pipes in a Macro   
      - Pipe Sections   
         - Command Execution   
      - Data Pipes   
         - Data Flow   
         - Warm Starts   
         - Features   
      - Pipe-Related Commands   
      - Lab 1 - Macro Pipes   
         - Instructions   
         - Solution   
      - Lab 2 - Macro Pipes   
         - Instructions   
         - Solution   
   + Messages in a Macro   
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 - Macro Pipes:
    • Create a new macro called pipeslab1.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.