Module Programming: Difference between revisions

From SweepMe! Wiki
Jump to navigation Jump to search
m (Afischer moved page ModuleProgramming to Module Programming)
No edit summary
Line 7: Line 7:
To program own modules, you need a license key. Please contact us here: contact@sweep-me.net
To program own modules, you need a license key. Please contact us here: contact@sweep-me.net


# Create the GUI: GUI elements are arranged in a layout which is loaded into the Tab that comes with every Module. You can create such a layout independent from SweepMe! by creating a function that returns a layout.  
# Create the GUI: GUI elements are arranged in a layout which is loaded into the Tab that comes with every Module. You can create such a layout independent from SweepMe! by creating a script with a function that returns a layout.
# Define actions: Whenever the Module changes visibility, is loaded by a setting or after the start of the program, you need to define functions if needed
# Define actions: Whenever the Module changes visibility, is loaded by a setting or after the start of the program, you need to define functions if needed.
# Link to sequencer functions: If a measurement is started, SweepMe! will run a well-defined set of functions. In this step, you have to tell SweepMe! what should be done.
# Link to [[sequencer procedure | sequencer functions]]: If a measurement is started, SweepMe! will run a well-defined set of functions. In this step, you have to tell SweepMe! what should be done.
# Test your Module: Try to combine it with other modules and see whether it can interact.
# Test your Module: Try to combine it with other modules and see whether it can interact.

Revision as of 06:30, 26 October 2019

Almost any functionality can be added to SweepMe! on the Module level.

Basic steps

The basic libraries to create a Module are Qt5 in combination with PySide2.

To program own modules, you need a license key. Please contact us here: contact@sweep-me.net

  1. Create the GUI: GUI elements are arranged in a layout which is loaded into the Tab that comes with every Module. You can create such a layout independent from SweepMe! by creating a script with a function that returns a layout.
  2. Define actions: Whenever the Module changes visibility, is loaded by a setting or after the start of the program, you need to define functions if needed.
  3. Link to sequencer functions: If a measurement is started, SweepMe! will run a well-defined set of functions. In this step, you have to tell SweepMe! what should be done.
  4. Test your Module: Try to combine it with other modules and see whether it can interact.