Previous Next        Current Page: NeXtMidas Training / Primitives / Lab 7 / Instructions
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
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   
   + Overview   
   + Open, Process, Close   
   + Building   
   + The NeXtMidas API   
   + Lab 1   
   + Special Variables   
   + Lab 2   
   + Lab 3*   
   + Files in a Primitive   
   + Lab 4   
   + Lab 5*   
   + Test Macros   
   + Lab 6   
   + Real Time Controls   
   - Lab 7   
      - Instructions   
      - Solution   
   + Working with Messages   
   + Lab 8   
   + Primitive Restarts   
   + Introduction to DSP   
   + Lab 9   
Applets & WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Lab 7:
    • For this lab you are given a primitive that creates a sinewave and an interactive macro that will test the real-time controls for the primitive. Your job will be to add those real-time controls to the primitive.
    • Files (be sure to save these with the correct names):
    • Use update to add the primitive to the command dictionary. It has 6 parameters (OUT=,ELEM=,AMP=1,FREQ=0.01,START=0,DELTA=1).
    • Add the real-time controls necessary to get and set the frequency and amplitude of the waveform.
    • Use the test macro to test them out.
    • Hint: This lab requires you to write 4 new methods for the primitive. Each of the methods will be a single line in length. You can assume that the user will only use valid input values (i.e. you do not need to do any error checking).