This VBScript (*.vbs) program can be run as a macro in the PNA. To do this, copy the following code into a text editor file such as Notepad and save it on the PNA hard drive as <filename>.vbs. Learn how to setup and run the macro.
'Demonstration
of Active Parameters setup. app.CreateCustomMeasurementEx
2, "Active Parameters", "IPwr" ActParam.SweepType = 3 'naHOTS22MultiSweep ActParam.StartPowerIn3DSweep
= -15 'Start power -15dBm ActParam.DisplayInputPower(2) = 0 ' Set the display as the 0dBm input |