Specifications

MDR User Guide 111
F Miscellaneous Functionalities
MDR Status Block mapped to VMEbus
A shared memory region is mapped by the MDR on the VMEbus and can be used during
the recording phase.
This shared region contains information on:
The MDR Server itself: signature, version numbers and MDR model name,
Where are mapped (on the VMEbus) the Progress Indicator structure and the Control
Data structure,
The state of the Progress Indicator (Enabled or Disabled),
The recording phase (progress indication).
The following structure can be read from the VMEbus:
typedef struct SHARED_MEMORY_HEADER {
UINT32 MdrSignature;
UINT16 MajorVersion;
UINT16 MinorVersion;
UINT8 MdrModelName[MDR_MODEL_NAME_MAXSIZE];
UINT32 ProgressIndicatorEnabled;
UINT32 MonitorDataStructureOffset;
UINT32 ControlDataStructureOffset;
UINT32 SharedMemoryVMEBaseAddress;
} SHARED_MEMORY_HEADER;
Currently,
MdrSignature is set to 0xBEC0BDEB,
MajorVersion
and MinorVersion are set to 1 and 2,
MdrModelName
is your MDR model name (defined in the mdr.ini file) and
MDR_MODEL_NAME_MAXSIZE is defined in the MdrDefs.h file,
ProgressIndicatorEnabled
is a flag indicating, if TRUE, that the progress indicator
structure (mapped to the VMEbus) contains valid data and is updated by the MDR
Server. If
FALSE, the progress indicator structure contains invalid data and should be
ignored,
MonitorDataStructureOffset
pointed to a structure which is defined as follows:
typedef struct MDR_PROGRESS_INDICATION {
UINT32 Running; /* TRUE if recording/playback is running */
UINT32 TotalBlocks; /* Total number of recorder blocks in
current running recording/playback */
UINT32 BlockNo; /* recorder block being processed */
} MDR_PROGRESS_INDICATION;
The ControlDataStructureOffset parameter is not currently used.
The
SharedMemoryDataVmeBaseAdrs structure is mapped on the VMEbus by the MDR
during the initialisation phase and can be read (only) at any time while the MDR Server
program is running.
In the
mdr.ini configuration file, the item called SharedMemoryDataVmeBaseAdrs is
used to specify the VME base address of the
SHARED_MEMORY_HEADER structure.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com