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