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

set source voltage output #6

Open
bski77 opened this issue Apr 7, 2021 · 2 comments
Open

set source voltage output #6

bski77 opened this issue Apr 7, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@bski77
Copy link

bski77 commented Apr 7, 2021

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
Copy link
Owner

Arkh42 commented Apr 15, 2021

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:

  • enable_output_source() and disable_output_source(),
  • set_output_source_off_condition(),
  • set_output_source_low_state().

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.

@Arkh42 Arkh42 added the enhancement New feature or request label Apr 15, 2021
@bski77
Copy link
Author

bski77 commented Apr 21, 2021

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

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

No branches or pull requests

2 participants