so i used the commands based on the peaktech 1565 model manual. But I unable to send the commands. Could you check the following code and let me know , whats wrong??
but when i run the below code:
import pyvisa
rm = pyvisa.ResourceManager()
rm.list_resources()
print(āResources detected\n{}\nā.format(rm.list_resources()))
i got the console output as:
Resources detected
(āASRL3::INSTRā,)
when i runned the line : pyvisa.log_to_screen()
i got the ouput like this :
2022-07-14 16:06:48,754 - pyvisa - DEBUG - Closing ResourceManager (session: 4097)
2022-07-14 16:06:48,758 - pyvisa - DEBUG - viClose(4097,) ā 0
@Prem206382 since we donāt stock this supply, we have no real way to verify the command set. It looks like your device is found, since you are connecting to a serial device ASRL.
Are you able to query the maximum voltage allowable? (command GMAX from that command set). Is it possible your setpoint is being rejected because it is too high?
Do you have success with psu.write('VOLT1') instead?
How about just toggling the output with
# don't forget to import sleep!
while True:
psu.write("SOUT1")
sleep(1)
psu.write("SOUT0")
sleep(1)
Any device that can communicate over a serial connection will be able to control the device. As it is supplied with a USB-to-Serial adapter you can assume that TTL levels will work for the serial interface. However, finding details might be difficult - even discovering the baud rate might require some digging.
1 Like
And you can get our latest projects and tips straight away by following us on: