Previous Next        Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Pipes in a Macro / Lab 2 - Macro Pipes / Instructions
back
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   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • 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.

back