Skip to content
⚡ Developer documentation for INFINICAM, the real-time high-speed camera (UC-1.1 / GbE-2)

Setting up a Python development environment

These are the steps for setting up a development environment to control and analyze data from INFINICAM using Python on Windows.

  1. Download the installer

    Visit the official Python downloads page and click the “Download Python 3.x.x” button to download the installer (.exe).

  2. Run the installer and configure PATH

    Run the downloaded file. When the screen appears, be sure to check the following box as the very first step.

    After checking the box, click “Install Now” in the center of the screen to run the installation.

  3. Confirm the installation completed

    Open a command prompt (press Win + R and type cmd), and run the following command.

    Terminal window
    python --version

    If a version number such as Python 3.x.x is displayed, Python has been installed successfully.


2. Installing the INFINICAM SDK (pypuclib)

Section titled “2. Installing the INFINICAM SDK (pypuclib)”

Install pypuclib, the library used to control the camera from Python.

  1. Obtain and install from GitHub

    Visit photron-limited/pypuclib (GitHub).

    • Click <> Code in the upper right, then 👉 Download ZIP to download it, and extract it to a folder of your choice.
    • Open a command prompt and use the cd command to move to the extracted pypuclib folder.
      Terminal window
      cd C:\path\to\pypuclib
    • Run the following command to install it.
      Terminal window
      pip install .
  2. Verify it works

    Run the following command at the command prompt to test that the library loads correctly.

    Terminal window
    python -c "import pypuclib; print('Installation successful!')"

    If no error occurs and Installation successful! is displayed, your environment setup is complete!


3. Creating and running your first program

Section titled “3. Creating and running your first program”

Using a text editor (such as VS Code), create a file named test.py, write the following code, and run it.

import pypuclib
print("pypuclib was loaded successfully.")

How to run it (command prompt):

Terminal window
python test.py