0% found this document useful (0 votes)
128 views

CMT Python Setup Guide

This document provides instructions for setting up Python to automate Copper Mountain Technology VNAs. It explains that installing the latest VNA software and registering the COM server is required. It also notes that the pywin32 module must be installed to allow Python to communicate with the VNA via COM. Sample code is provided to demonstrate the correct syntax for automating measurements in Python.

Uploaded by

thgnguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
128 views

CMT Python Setup Guide

This document provides instructions for setting up Python to automate Copper Mountain Technology VNAs. It explains that installing the latest VNA software and registering the COM server is required. It also notes that the pywin32 module must be installed to allow Python to communicate with the VNA via COM. Sample code is provided to demonstrate the correct syntax for automating measurements in Python.

Uploaded by

thgnguyen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Python Setup Guide Jan.

2016

Automating any of Copper Mountain Technology’s VNAs in Python follows a similar structure to the automation procedure
for other environments; the key step lies in setting up the COM server connection. The following example is based on
Python 3.4, though later versions of Python involve a similar procedure.

Before starting, install the VNA software application and ensure that the COM server for the VNA you are using is
registered during installation. The latest version of the VNA software is always available for download at
www.coppermountaintech.com.

To register the COM server if the VNA software installation has already completed, open up a command prompt and
execute the following commands:

(Note: this path is for the S2VNA. Check the programming manual for specific file paths of other instruments.)

This command will register or re-register the COM server and the confirmation dialogue box will appear. If an error occurs,
be sure you have administrator privileges. For assistance, please contact [email protected].

In order to communicate with the VNA through its COM interface, pywin32 needs to be installed. You can find download it
here: http://sourceforge.net/projects/pywin32/files/ (you will need to search the files for the pywin32 matching your version
of Python).

After successfully installing pywin32, you can start programming in Python to automate your VNA. Please refer to the
Python programming example vna.py for examples of correct syntax. An excerpt of vna.py is shown below. For additional
assistance, please contact [email protected] and we will be glad to help!
Python Setup Guide Jan. 2016

You might also like