Current Page:
NeXtMidas Training
Macros - Part 1 (Basics)
Pipes in a Macro
Lab 2 - Macro Pipes
Instructions
|
|
- Lab 2 - Macro Pipes:
- The goal of this lab is just to demonstrate how
easy it is to use the "warm start" and "reconnect" features of
NeXtMidas pipes. There is no code that needs to be written for
this lab.
- Run the
SD360 macro (part of the SYS option tree):
nM> sd360 2e9
- Bring up a debug terminal by doing the following:
- In the SD360 window MMB (middle mouse button) click in the
blank area below the controls (lower left corner of window).
- A little menu will pop up. In that menu select "Debug" and
then "Terminal" using the LMB (left-mouse-button).
- In the debug terminal list the pipes that are running using the
FILES command (if you specify AUX=RAM
only those files/pipes in ram will be displayed):
nM-Pipe> files aux=ram
- Bring up another
PLOT displaying the _waveb
pipe. Note that this will connect the new PLOT to
the pipe that WAVEFORM that is already writing to
(i.e. this is a "warm start").
- If you aren't sure how to do this, feel free
to look at the solution on the next page.
- Now change the frame size being used by the
FFT
from "1K" to "4K". This can be done by using the "FFT Size"
widget in the macro. Notice how everything automatically adjusts
to the new frame size?
- This is possible because the
PLOT and
FFT automatically reconnect to the
_waveb pipe using the new frame size.
- When you are done just click "Exit" in the
SD360
window to exit the macro.
|
|
|