Updated
This commit is contained in:
@@ -12,9 +12,7 @@ AUTHOR: D. RICE 20/06/2024
|
|||||||
# Imports
|
# Imports
|
||||||
import pyvisa
|
import pyvisa
|
||||||
import time
|
import time
|
||||||
from threading import Timer
|
|
||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
|
||||||
|
|
||||||
# Global variables
|
# Global variables
|
||||||
setup_del = 0.2 # Setup delay in seconds
|
setup_del = 0.2 # Setup delay in seconds
|
||||||
@@ -59,7 +57,7 @@ def main():
|
|||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
psu_voltage = 0.0
|
psu_voltage = 0.0
|
||||||
|
|
||||||
for counter in range (9):
|
for counter in range (10):
|
||||||
print("RAMP #" + str(counter + 1) + " | VOLTAGE: " + str(psu_voltage))
|
print("RAMP #" + str(counter + 1) + " | VOLTAGE: " + str(psu_voltage))
|
||||||
SPD.write('CH1:VOLT ' + str(psu_voltage)) # Send power supply source voltage
|
SPD.write('CH1:VOLT ' + str(psu_voltage)) # Send power supply source voltage
|
||||||
#time.sleep(setup_del)
|
#time.sleep(setup_del)
|
||||||
|
|||||||
Reference in New Issue
Block a user