After unpacking the Phidget Python module, open the command prompt (press the Windows key and search for "cmd") Locate the folder where you downloaded the Python module and enter the following command:

pythonsetup.pyinstall

This will build the module and install the Python module files into your site-packages directory.

Add the example you just downloaded by right-clicking on the project and adding an existing item:

Be sure to add PhidgetHelperFunctions.py in the same way.

Select the example as the startup file:

Ensure that your Python environment is the same as the version you have installed. Enter the following command to view your Python version if you are unsure:

python-V

You can view/edit your Python environment under the Python Environments tab:

You should now have the example up and running for your device. Your next step is to look at the Editing the Examples section below for information about the example and important concepts for programming Phidgets. This would be a good time to play around with the device and experiment with some of its functionality.

Editing the Examples

To get our example code to run in a custom application, simply remove the calls to AskForDeviceParameters and PrintEventDescriptions, and hard-code the addressing parameters for your application.