Specifications

MDR User Guide 57
ResetServer
Declaration:
STATUS ResetServer (UINT ResetType);
Description: Reset the MDR Module(s).
This function requests the MDR module to reset.
Returned value:
OK or ERROR.
If
ERROR is returned then the errno variable will be set accordingly. See MdrDefs.h for
MDR errno values.
The
<ResetType> argument specifies how the MDR Server(s) should be reset.
Before setting the value to the
ResetType argument, it is important to understand that,
depending on the MDR system hardware configuration (jumper settings), the reset may
affect the behavior of the other boards present on the same VME backplane.
The hardware setting to consider is the jumper called SYSRESET DISABLE (RST DIS
or J7 on the diagram shown in the Appendix D: Switch and Jumper Settings).
It is possible to reset the MDR system using the reset button present in front panel of the
MDR system. This reset is called a hardware reset and is usually used when the MDR
system is unable to communicate with the MDR host software because of a defective
state.
When trying to reset the MDR system using the front panel reset button, the action of
this jumper will be the following:
Jumper RST DIS removed:
Pushing the reset button will perform both a local reset
(i.e. reset the MDR system by resetting the i960 processor) and a global reset (i.e.
also potentially reset all the boards present on the same VME backplane). In this
case, the SYSRST* signal on the VMEbus is asserted, causing all the VME boards
to reset (if these boards are setup to reset when SYSRST* is asserted).
Jumper RST DIS inserted:
Pushing the reset button will only perform a local reset
(PCI bus reset). This means that only the MDR system will be reset and this reset
will not be propagated to the other VME boards present on the same VME back-
plane. The behavior of these boards will therefore not be changed.
Without considering the hardware setting (RST DIS jumper position), the <
ResetType>
parameter can have two different values:
MDR_RESET_VME Both local and global reset. Both local PCI buses and VME
bus are reset.
MDR_RESET_I960 Only local software reset. The MDR system processor (Intel
i960) is restarted without neither resetting the local PCI buses nor the VME bus.
When the MDR Server program restarts, it tries to re-initialize all the PMC boards
installed on the MDR system. However it is possible, in some cases (after a crash of
one PMC board for instance), that the MDR Server is not able to re-initialize all the
PMC boards. In that case, the MDR Server will report an error to the MDR host
software during the connection phase (the connection will not be established). It is
then necessary to reset the MDR system using the front panel reset button (or from
the VxWorks shell).
If the <
ResetType> parameter is not (or incorrectly) specified then the default value 1 is
chosen. Therefore a local software reset is carried out.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com