Skip to content

Conversation

@czee
Copy link
Contributor

@czee czee commented Sep 19, 2019

  • Fix a syntax error in powermeters.newport preventing driver_info generation
  • Use correct var names so that the driver_info file can parse the other Rigol
    drivers
  • Regenerate driver_info.py

- Fix a syntax error in powermeters.newport preventing driver_info generation
- Use correct var names so that the driver_info file can parse the other Rigol
  drivers
- Regenerate driver_info.py
@czee czee changed the title Add Rigol methods Add methods in powersupplies.rigol, scopes.rigol Sep 19, 2019
current_protection_state = SCPI_Facet('SOURce:CURRent:PROTection:STATe', convert=OnOffState)
output = SCPI_Facet('OUTPut:STATe', convert=OnOffState)
beeper = SCPI_Facet('SYSTem:BEEPer', convert=OnOffState)
measured_voltage = SCPI_Facet('MEASure:VOLTage', convert=float, readonly=True, units='A')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a typo here, units should be volts

from pyvisa.constants import InterfaceType
import numpy as np
from pint import UndefinedUnitError
from pint import UndefinedUnitError, UnitRegistry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't look like this new import is used anywhere

@natezb
Copy link
Contributor

natezb commented Oct 2, 2019

Thanks for this! There are just a few minor notes I had, which I reviewed above. Additionally, I'm going to hold off on accepting the VISA transaction changes until we discuss it a bit more. I'll comment about that on the separate PR you made for it.

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

Successfully merging this pull request may close these issues.

2 participants