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