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.

Use our examples

One of the best ways to start programming with Phidgets is to use our example code as a guide. Before we get started, make sure you have read how to install the Phidget Python module section above. You will also need to download LiClipse if you have not already.

Now that you have Python and the Phidget Python module installed, as well as LiClipse, select an example that will work with your Phidget:

Add PhidgetHelperFunctions.py to the project by dragging it into the project.

Finally, run the project:

If prompted, select the example file to be run:

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.