myInst Instrument Support

# Using myInst instrument support in an application

Several files need minor modifications to use myInst instrument support in an application.

1. Add the full path to the myInst support directory to the application `configure/RELEASE` file:
   `myInst=`xxxx`/modules/instrument/myinst/<release>`
   Where `<release>` is the release number of of the myInst support.
2. Add stream and asyn support to application database definition file
   The application database definition file must include the database definition files for the stream package and for any needed ASYN drivers. There are two ways that this can be done:
   - If you are building your application database definition file from an xxx`Include.dbd` file you include the additional database definitions in that file:
     `include "base.dbd"`
     `include "stream.dbd"`
     `include "drvAsynIPPort.dbd"`
   - If you are building your application database definition file from the application Makefile you specify the aditional database definitions there:
     xxx`_DBD += base.dbd`
     xxx`_DBD += stream.dbd`
     xxx`_DBD += drvAsynIPPort.dbd`
3. Add the stream and asyn support libraries to the application
   You must link the stream support library and the ASYN support library with the application. Add the following lines:
   xxx`_LIBS += stream`
   xxx`_LIBS += asyn`
   before the
   xxx`_LIBS += $(EPICS_BASE_IOC_LIBS)`
   in the application Makefile.
4. Load the myInst support database records in the application startup script:
   `cd $(myInst)` (`cd myInst` if using the vxWorks shell)
   `dbLoadRecords("db/devmyInst.db,"P=`<P>`,R=`<R>`,PORT=`<PORT>`,A=`<A>`")`
   You'll have to provide appropriate values for the PV name prefixes (<P> and <R>), the port name (<PORT>) and the device address (<A>). The port name must match the value specified in an ASYN `drv`xxxxx`Configure` command.

# Installation and Building

After obtaining a copy of the distribution, it must be installed and built for use at your site.

1. Create an installation directory for the module. The path name of this directory should end with `modules/instrument/myinst`.
2. Place the distribution file into this directory.
3. Execute the following commands:
   `cd modules/instrument/myinst`
   `gunzip myinst<release>.tar.gz`
   `tar xvf myinst<release>.tar`
   `cd <release>`
   Where `<release>` is the release number of of the myInst support.
4. Edit the `configure/RELEASE` file and set the paths to your installation of EPICS base, stream and ASYN support modules.
5. Execute `make` in the top level directory.