X-Midas> nm/on/bg/id=999
X-Midas> nm <nextmidas command>
X-Midas> nm plot nxm.sys.dat.world.shp
X-Midas> nm/off
startmacro
nm/on/bg/id=999 ! Start the JVM, permitting messages with /ID switch
xpipe/setup on
waveform _mypipe sf 1e9
nm plot xmpipe:_mypipe
xpipe off
nm/off ! Stop the JVM
endmacro
| Don't Make This Mistake: |
|---|
To send/receive messages from NeXtMidas to X-Midas and vice versa,
start the JVM with /ID=[n] switch.
The value of the ID is not important, 999 is a good unique one.
The X-Midas message queue should be installed before the JVM (e.g.
X-Midas> message up).
Then, the NeXtMidas macro/primitive to receive the X-Midas message must have been started from an X-Midas macro with "NM <command>/ID=<id>". |