Example Projects

This section provides complete example projects demonstrating how to use the BenHW SDK with Python and .NET.

Download Examples

Download a complete set of example projects:

examples.zip

What’s Included

Example code

The Python example (python/main.py) and the .NET example (dotnet/Program.cs) demonstrate:

  • Loading system configuration and setup files

  • Initializing the hardware

  • Parking the hardware

  • Selecting wavelength

  • Performing measurements

The examples reference the configuration files in the config folder using relative paths.

Configuration Files

The config folder contains:

  • system.cfg - System configuration file defining hardware components

  • system.atr - Setup file with instrument settings

Both example projects are configured to reference these files, so they can be run directly after extraction.

Getting Started

  1. Download and extract the examples zip

  2. Choose either the target language example

  3. Follow the installation instructions in the documentation for target language

  4. Run the example code

The example projects provide a starting point that you can modify for your specific hardware configuration and measurement requirements.