Arkh42 / rtestbench

Toolkit written in Python that allows the user to create a software remote test bench to control an actual electronic test bench remotely.
https://rtestbench.readthedocs.io/en/latest/
Open Software License 3.0
4 stars 3 forks source link

set source voltage output #6

Open bski77 opened 3 years ago

bski77 commented 3 years ago

Not an issue. But, a rtestbench newbie question..... I have installed rtestbench & it is working with my B2987A. I looked through the repo & can not figure out how to set the source voltage output. I was wanting to set the source voltage output to 600V turn on the source voltage & then take a temp reading. It should be pretty simple, though I'm having a ton of trouble setting the source voltage & turning it on...... Thanks & Best Regards BK

Arkh42 commented 3 years ago

Hi. Sorry for the delay, I am on holiday.

You can find the constants to set up the source voltage output in https://github.com/Arkh42/rtestbench/blob/master/rtestbench/tools/keysight/electrometer/b298x.py. Some of the function you are looking for are already part of the rtestbench package. Have a look at:

When I developed the package, I didn't need the output source voltage. So apart from the configuration functions, I did not develop the control functions. What you can do is one of the following solution:

  1. fork, create the functions, then make a pull request;
  2. directly use the generic send(), query() and query_data() funtions from the Tool class in your script and pass the SCPI commands that you can find in the programming manual provided by Keysight.
bski77 commented 3 years ago

Thanks for the reply. I believe I will create the new functions to fit my needs & then make a pull request. I've been busy working with a digitizer card & creating a routine for averaging 300 samples to establish effective mobility. I will return to this project in the next week.

Thanks & Best Regards BK