# Serial Flux Python example: Command / parameter sweep template
#
# Useful for exercising a device over a range of settings.
# Insert the appropriate Serial Flux Send Sequence/API call for your project.

import time

values = [0, 10, 25, 50, 75, 100]

SF.startLogging()
try:
    for value in values:
        print(f"Testing setting: {value}")

        # Integration point:
        # Send the command or Send Sequence containing `value`.

        # Allow the target to respond before advancing.
        time.sleep(0.5)
finally:
    SF.stopLogging()

print("Sweep complete.")
