Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The REST wrappers are normally shipped in your instrument and can be referenced from "http://<ipAddr>/Calnex100G/RemoteControl/". If you would prefer, you can also download them from the links below. The versions below may be more recent than in your instrument but will be backwards compatible with any scripts you have already written.

Python: calnexRest.py

calnexRest.py (version 1). This is the version included with Paragon-neo v2.1

calnexRest.py (version 2). This version has an additional utility function for the generation and download of CAT reports. The additional function is:

Code Block
languagepy
themeEmacs
def calnexCatGenerateReport(report_name, dest_folder="./", with_charts=True):
"""
Generate a report in the CAT and then download it to the local PC
The measurement must have been stopped before a report can be generated

Parameters:        
	reportName: str            
		The name of the report to be generated        
	destFolder: str, optional            
		The name of the folder on the local PC where the report will be saved.
		The path to the folder will be created if required. If destFolder is not 
		specified then the report will be saved in the current working directory
		(i.e. where the script is executing)
        withCharts: bool, optional            
		If True (the default), then charts will be included in the report.    
Returns: None    
Raises:  Raises a runtime exception if the CAT remains busy 
"""


Tcl: calnexRest.tcl

Paragon-X Compatibility

...