Generating PowerShell Scripts

To export the plotted charts as an image to generate reports on a Windows-based operating system, use the PowerShell script for the displayed charts. You can use the Windows PowerShell client to run the PowerShell scripts.

To download the plotted configuration in SVG file format.

  1. Click PowerShell on the Automation pane.

Graphical user interface, text

Description automatically generated

  1. A window appears where the PowerShell script for the current chart is displayed.

Text

Description automatically generated

  1. Highlight and copy the PowerShell script to the clipboard.

  2. Paste the script in a text editor.

  3. Modify the file name, if required, for easy identification.

Note: Keysight recommends modifying only the few sections mentioned below. The rest of the code contains information about the plotted chart and should not be edited.

Text

Description automatically generated

 

  1. Open PowerShell.

  1. Copy and paste the script to Window PowerShell client.

Text

Description automatically generated

  • Press Enter on the keyboard.

  • If the command prompt returns without any errors, the script has run successfully.

  • By default, the image is extracted to the directory path on your machine, which has been accessed by the PowerShell client.

  • The image is exported in the SVG format.

  1. Scroll down to view the rest of the extracted image.

See the following topics for more information on modifying the appearance of PowerShell generated charts: