Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Pipes in a Macro / Pipe Sections
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   


  • Pipe sections:
    • Pipe sections allow multiple primitives to run simultaneously.
      PIPE ON Starts a pipe section.
      PIPE OFF Ends a pipe section.
    • A pipe section is so named because data pipes can be used within that section.
      • (Data pipes will be discussed shortly.)
    • When the pipe is done running, the macro will continue executing at the line after the PIPE OFF.
    • Example of a pipe section:
      • STARTMACRO
            ...
            PIPE ON
                PANEL/SETUP
                WAVEFORM _wave ...
                FFT _wave _waveb ...
                PLOT _wave
            PIPE OFF
            ...
        ENDMACRO
      • In the above pipe section PANEL, WAVEFORM, FFT, and PLOT all run in parallel and can share data.
        • Each command has its own thread.
        • (The names starting with an underscore indicate data pipes -- more on this later.)
X-Midas Users Take Note:
X-Midas has both PIPE and XPIPE to differentiate between non-graphical and graphical pipes. NeXtMidas pipes can do both without modifying the macro.