![Analog Devices ADRV9001 Скачать руководство пользователя страница 330](http://html1.mh-extra.com/html/analog-devices/adrv9001/adrv9001_user-manual_2939807330.webp)
UG-1828
Preliminary Technical Data
Rev. PrC | Page 330 of 338
Programming the Evaluation System
After all tabs are configured, the user must press the
Program
button. This starts programming and initialization of an evaluation
hardware. The TES sends a series of API commands that are executed by a dedicated Linux application that runs on the Xilinx platform.
The user will see a progress bar at the bottom of the window. When programming has completed the system is ready to operate.
IronPython Scripting
IronPython is an implementation of the Python programming language targeting the .NET Framework. The
IronPython
editor is in the
View
menu and allows the user to use IronPython to write a unique sequence of events and then execute them using the ADRV9001
evaluation system.
For the
IronPython
scripting tab to operate, the user must download the Iron Python 2.7 environment. The latest version can be
downloaded from the Iron Python website (https://ironpython.net/). After Iron Python is installed, the user must tell TES its installation
library path. To set this, open the IronPython editor
,
then select
File
and select
Set IronPython path
.
For the default Iron Python
installation, this path is set to
C:\Program Files (x86)\IronPython 2.7\Lib.
Figure 322 shows the
IronPython
editor after executing the
File
>
New
function in the
IronPython Script
tab. The top portion of the
window contains IronPython script commands whereas the bottom portion of the window displays the script output.
To use this tab, take the following steps:
1.
Scroll to the bottom of the file where there is text that states
#### YOUR CODE GOES HERE ####
2.
This editor will bring up suggestions of all the API functions available when you type “Adrv9001.”
3.
Information on parameters for different API calls can be found in the doxygen file (
ADRV9001_API.chm
) in the SDK.
4.
Go to
IronPython
, select
Build
and then select
Run
. This function executes Iron Python script open in currently active script tab
using ADRV9001 evaluation hardware. Script output is displayed in bottom side of the Iron Python script tab.
For this example, the Tx attenuation for the selected channel changes.
Figure 322. IronPython Scripting Window
There are example python scripts included in the SDK to run API functions that do not appear in the GUI. These files can be found in the
ADRV9001 Transceiver Evaluation Software\IronPython
folder and can be loaded via the
File
menu and
Load.