Git clone this repository.
Install NI-VISA from here:
https://www.ni.com/en-no/support/downloads/drivers/download.ni-visa.html#442805
HMP4040 need drivers. Install it from the Driver folder.
Install anaconda and create environment from environment.yml.
conda env create -f environment.yml
conda activate PSU_REMOTESetup influxdb in config\influxdb.json
database key is for test setup 1
database_2 key is for test setup 2
Use hmp4040.json to configure the channels to monitor
Example of usage:
python hmp4040_remote.py -s 1 -m #Sets the system to Mixed mode and start logging to influx db
python hmp4040_remote.py -c 2 -v 10 -i 3.4 -o #Selects channel 2, sets the voltage to 10V and current to 3.4A
python ki2450_remote.py -v 10 -i 3.4 -o #Sets voltage to 10V and current to 3.4A. Then turns the output on.For VI_scan and IV_scan, need to change settings in the files.
Example:
"""---------------------------------------------------------------------------------------------------------------------------------"""
CHANNEL = 1
VOLTAGE_LIMIT = 2
CURRENT_START = 3.75
CURRENT_END = 0.1
CURRENT_STEPS = 0.1
TIME_IN_STEPS = 1
TIME_BETWEEN_STEPS = 1
MODE = 1 # Regular ramping: (0) / Switch on and off: (1)
INFLUX = 0 # Enable (1) or disable (0) upload to influxdb
LOCAL = 1 # Enable (1) or disable (0) saving data locally
RESOURCE_NAME = 'ASRL6::INSTR' # VISA resource name. Can be found using pyvisa.ResourceManager
MODULE_NUMBER = "RD53AE1003"
TEMPERATURE = "20C"
"""---------------------------------------------------------------------------------------------------------------------------------"""While logging to influx db, one can use Windows Named Pipe to communicate with the PSU. The pipe are named "hmp4040"
Example:
Sending a tuple: (true, 2) to "hmp4040" will turn off the output to channel 2.