UG-1828
IronPython Scripting
The IronPython editor is under view 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. After Iron Python is installed, the user needs to tell TES its installation library path using
IronPython, 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 227 shows the IronPython tab 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.
On a new line below this, type exactly Adrv9001 followed by the dot character (".").
3.
The editor suggests a number of options. For example, type tx followed by the dot character.
4.
The editor suggests a number of options. Type TxAtten and view the available Tx Attenuation related methods.
5.
After selecting TxAttenSet, modify the TxAttenSet parameters accordingly.
6.
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 227. IronPython Scripting Window
Rev. PrA | Page 244 of 253
Preliminary Technical Data
Need help?
Do you have a question about the ADRV9001 and is the answer not in the manual?