EasyManuals Logo

Keysight Technologies M8000 Series User Manual

Keysight Technologies M8000 Series
668 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #571 background imageLoading...
Page #571 background image
Keysight M8000 Series of BER Test Solutions User Guide 571
Utilities 9
Writing a Script Code for DUT Control Interface
Scripting Runtime
• The underlying scripting technology uses IronPython 2.7.5
• The M8070A does not include the full IronPython 2.7.5 installation, only
the scripting engine itself. When referencing the modules of an
IronPython installation that is available on the computer, it must be
ensured that the versions match.
• IronPython makes it very easy to use functionality provided by the
Microsoft .NET framework, but it cannot directly access dynamic link
libraries that are not based on .NET.
Functions that are implemented in unmanaged DLLs (usually
implemented in C or C++) do require a .NET wrapper library.
For details see:
https://msdn.microsoft.com/en-us/library/ms235282.aspx
Title: Calling Native Functions from Managed Code
• Python functions do not have out parameters. If a function is using out
parameters, then these will be returned as additional return values.
Example:
• C# function
bool DoSomething(int arg1, out double resultArg1,
double arg2, out int resultArg2,
out string resultArg3)
• IronPython usage
(returnValue, resultArg1, resultArg2, resultArg3) =
DoSomething(arg1, arg2)
• Remote commands to control M8070A cannot be used within the DUT
Control Interface scripts.
While this is possible in principle, it will cause problems when the
functions implemented in the DUT Control Interface are being executed
in the context of remote commands (e.g. query error counters via
:fetc:bco?). In this case the remote interface is busy until the DUT
counters have been returned by the script function DUT_getBER, but
while the remote interface is busy it cannot process any further remote
commands, neither internally issued nor external ones. This can very
easily end up in deadlock/timeout scenarios.
• Code outside of function definitions is being executed at load time of
the script.
This can be used to initialize required variables, or establish the
communication link with the DUT.

Table of Contents

Other manuals for Keysight Technologies M8000 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies M8000 Series and is the answer not in the manual?

Keysight Technologies M8000 Series Specifications

General IconGeneral
BrandKeysight Technologies
ModelM8000 Series
CategoryTest Equipment
LanguageEnglish

Related product manuals