Previous Next        Current Page: NeXtMidas Training / Primitives / Working with Messages / Sending Messages
back
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   
   - Working with Messages   
      - processMessage   
      - Sending Messages   
   + Lab 8   
   + Primitive Restarts   
   + Introduction to DSP   
   + Lab 9   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Sending messages from a primitive:
    • Messages are sent from a primitive using MQ.put(...).
    • That's about it... sending messages is quite simple.
      sentResult = MQ.put("MSG_NAME", info, data, target);
      TODO : Command.sendMessageTo("MSG_NAME", info, data, targetId); 
X-Midas Users Take Note:
Since real-time controls are so easy to create and use in NeXtMidas, they have begun to replace the use of messages in many situations. The value of using messages comes from the fact that they are queued up, rather than processed immediately.

back