Process data()

From SweepMe! Wiki
Jump to navigation Jump to search

The function 'process_data' is called at each measurement point after read_result() and before call(), for all modules of the branch.

Use it to process the raw data that was read from the instrument, e.g. to convert units, to calculate derived values, or to split a received string into numbers. Store the results in attributes of the driver so that call() only needs to return them.

The phase process() that follows after call() is meant for modules. In a driver, use 'process_data' instead.