Drivers

From SweepMe! Wiki
Revision as of 09:27, 9 November 2017 by Afischer (talk | contribs) (start)
Jump to navigation Jump to search

A Device Class is small piece of code allowing you to implement devices on your own. It is a file written in the programming language python 2.7 (https://www.python.org/).

All Device Classes can be found in the folder DeviceClasses of the SweepMe! installation.

Each Device Class can be found in a further folder of the following folder name structure:

<Type of the Measurement Class>-<Name of the manufacturer>_<Name of the device model>

Examples:

  • SMU-Keithley_2400
  • LCRmeter-HP_4284A
  • Logger-PC_Mouse

The <Type of the Measurement Class> must be related to the Measurement Classes provided by SweepMe! and every Measurement Class provides different functionality to control a certain type of equipment.

The Device Class itself is a file which always has the name "main.py" and which can load further python modules, [dll]s, or simply text files as needed to get your Device Class working.

The Device Class Structure provides various standard functions which can be used at certain points during the run of the measurement sequence.