Previous Next         Current Page: NeXtMidas Training / Macros - Part 1 (Basics) / Lab 8 / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
   + Macro Basics   
   + Lab 1   
   + Lab 2   
   + Loops and Control Structures   
   + Lab 3   
   + Lab 4*   
   + Procedures and Subroutines   
   + Lab 5   
   + Lab 6*   
   + Pipes in a Macro   
   + Lab 7   
   - Lab 8   
      - Instructions   
      - Solution   
   + Messages in a Macro   
   + Lab 9   
   + Lab 10   
Macros - Part 2 (Graphics)   
Primitives   
Installing NeXtMidas   
Applets & WebStart   
Mapping (NeXtEarth)   
Remote Midas InterFace (RMIF)   
Using NetBeans   
X-Midas Interoperability   
Remoting an X-Midas App.   


  • Lab 8:
    • 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 arm will be displayed):
      nMP> 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.