Specifications

20  MDR User Guide 
4.3 Configuring the MDR Shell 
As part of the configuration, the MDR host software needs to read some parameters 
from a configuration file called mdr.ini. This file is stored in the mdr-host-sw/etc 
directory. In order for the MDR host software to know where to find this file, the 
environment variable 
MDR_BASE needs to point to the base of the MDR software 
installation. Therefore, the user has to declare an environment variable called 
MDR_BASE. 
This variable specifies the base directory of the ‘MDR tree’. The mdr.ini file is 
expected to be in the sub-directory called etc/ of the directory specified by MDR_BASE. 
In the UNIX csh environment, MDR_BASE may be set with the command: 
#setenv MDR_BASE /<mdr directory path>/mdr 
In the Windows environment, MDR_BASE may be set with the command: 
C:\>set MDR_BASE=/<mdr directory path>/mdr 
In the Power PC (VxWorks) environment, MDR_BASE may be set with the command: 
->putenv (“MDR_BASE=/<mdr directory path>/mdr”) 
In the UNIX environment, the path to the file 
libmdrapi.so.0 (present in mdr-host-
sw/lib/sun-solaris/.libs
) must be added to the LD_LIBRARY_PATH  environment 
variable. 
In the Windows environment, the path to the files 
mdrapi.dll and cygwin32.dll (pre-
sent in mdr-host-sw/lib/x86-win32) must be added to the PATH environment vari-
able. 
The MDR is shipped without any server lines defined in the mdr.ini file because the 
layout of the network is unknown. The user may optionally define servers to which the 
MDR Shell will attempt to connect automatically. The same is true for the mdr.ini file 
installed on the MDR unit itself. Without any server lines, the resident MDR shell will 
prompt for the "MDR Server hostname or IP address:" (i.e. the name or IP address of the 
MDR unit). 
To define a server line for the MDR resident shell, reset the MDR, enter the MIDAS 
Monitor and type the command: 
#iset Servers sX <IP addr> mdr.ini 
where X is a number starting at 1 and <IP Addr> is the IP address for the MDR unit. 
The mdr.ini file looks something like this: 
# MDR configuration file 
[Servers] 
## s1,s2,...sn specifies which MDR servers to communicate with 
s1=midas 
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com










