Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added TSP support for the pyvisa-sim module #11

Open
quaeritis opened this issue Dec 13, 2018 · 8 comments
Open

added TSP support for the pyvisa-sim module #11

quaeritis opened this issue Dec 13, 2018 · 8 comments

Comments

@quaeritis
Copy link
Contributor

Hi @samschott,

I added TSP support for the pyvisa-sim module.
can be found here:
https://github.com/quaeritis/pyvisa-sim/tree/tsp

So you can do something like this for example:

import keithley2600
from keithley2600 import Keithley2600

keithley2600.log_to_screen()

k = Keithley2600('GPIB0::10::65535::INSTR', '@sim')
k.voltageSweepSingleSMU(smu=k.smua, smu_sweeplist=list(range(0, 61)),
                        tInt=0.1, delay=-1, pulsed=False)  # records single SMU IV curve
@samschott
Copy link
Member

samschott commented Dec 13, 2018 via email

@samschott
Copy link
Member

Did you by any chance also write a yaml file to mock a Keithley 2600B instrument?

@samschott samschott reopened this May 1, 2019
@quaeritis
Copy link
Contributor Author

Hi SamSchott,

"yes I have", but in the yaml file only determines which lua file is loaded. This then contains the functions that simulate the Keithley API.

spec: "1.0"
	devices:
	  device 5:
	    eom:
	      GPIB INSTR:
	        q: "\r\n"
	        r: "\n"
	    error: ERROR
	    dialogues:
	      - q: "*trg"
	    tsp:
	      filename: "default.lua"
	      bundled: true

Unfortunately, due to the numerous changes since then, the included default.lua is no longer compatible with keithley2600 and keithleygui.

My hope was that we can use this simulation with pytest. Unfortunately, at the moment I have too little time to push this further. An update of the default.lua is on my TODO but I can not say as I said when I find time for it.

quaeritis

@samschott
Copy link
Member

Hi quaeritis,

Sorry about the many iterations. At least the driver should remain stable now, I am quite happy with it as-is. So if you do find the time, an updated default.lua would indeed be helpful to test the scripts without an actual Keithley attached. But there is no hurry!

Best,
Sam

@quaeritis
Copy link
Contributor Author

There is no need for apologies. I also benefit from the improvements.

@quaeritis
Copy link
Contributor Author

Hi Sam,

Can you send me a log of a measurement?
I do not have access to a Keithley right now.
A log of a real measurement would help me a lot to update the default.lua.

Best,
quaeritis

@samschott
Copy link
Member

samschott commented May 20, 2019 via email

@SDayneko
Copy link

Hey,

Can I use this keithley2600 with Keithley 2612B. I am using 2 channel one for J-V curve (with limit current) of OLEDs and second to measure current from silica photodiode.

I am using Keithley KickStart Software and it easy to use to measure, but after that I am making a lot of calculation.
I wanna to measure the J-V curve (with limit current) of OLEDs and to measure current from silica photodiode, and after that calculate brightness and performance of OLEDs. I know how calculate, but I need some help with use Python to measure the J-V curve (with limit current) of OLEDs and to measure current from silica photodiode and shows this data automatically on graphics. For example, first: - J-V curve (J in mA/cm^2, where the cm^2 is the area of device by V in voltage) and second: J-V curve (where J is the current from Si-photodiode by V is the voltage on OLEDs).

I really appreciate for any help with that.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants