1 2 3 4 5 6 7 8 9 10 11 12
from nlabapi import LabBench import time nlab = LabBench.open_first_available() nlab.ax_turn_on(1) time.sleep(10) nlab.ax_turn_off(1) nlab.ax_turn_on(2) time.sleep(10) nlab.ax_turn_off(2)