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:
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 componentssystem.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¶
Download and extract the examples zip
Choose either the target language example
Follow the installation instructions in the documentation for target language
Run the example code
The example projects provide a starting point that you can modify for your specific hardware configuration and measurement requirements.