startmacro
! Runs the NeXtMidas DEMO macro from X-Midas.
!
! @author  J. Czechowski IV
! @version $Id: demo.txt,v 1.1 2005/10/13 22:48:16 jxc Exp $
!

  nm/on/bg   ! Turn the shared JVM on

  ! When not run from X-Midas, NeXtMidas automatically sets the DAT
  ! AUX to point to $NMROOT/nxm/sys/dat. Since X-Midas doesn't do
  ! this, set AUX 101 to point to $NMROOT/nxm/sys/dat (note that
  ! $XMAREA_NXM = $NMROOT/nxm/sys).
  import/nowarn "XMAREA_NXM" NXM
  res AUX_101 "^{NXM}/dat/"
  aux ,, +101


  nm path add dsp  ! DEMO requires DSP to be on the NeXtMidas path
  nm demo

  nm/off   ! Turn the shared JVM off

endmacro