Keysight M8000 Series of BER Test Solutions User Guide 573
Utilities 9
def DUT_syncPattern(location):
global myDUTs
lane = myDUTs[location]
lane.Stop()
lane.ResetDut()
lane.Start()
• Optionally implement DUT_Init(location, initArg) if it is required to
configure the DUT to different modes.
DUT_Init can be called from the remote programming interface, so the
test automation is able to execute initialization code on the DUT
programmatically.
The M8070A software will not call DUT_Init unless the script is using it
internally, or it is either requested from the remote programming
interface, or interactively from within the DUT Control Interface script
editor.
• Making script code executable from within the remote programming
interface can cause a security issue in your computer.
• The M8070A software is not able to limit the user script's
functionality. It is the user‘s responsibility to ensure that no unsafe or
otherwise critical code is being executed from within DUT_Init.
• Special care should be taken when using the python statements eval
or exec, as these allow dynamic execution of python code.
• Keysight recommends not using eval or exec at all, except the DUT or
application requires this.
• Keysight is not liable for any kind of damage caused by the use of
remote executable script code (see Limitation of Liability in End User
License Agreement).