Skip to content

Commit

Permalink
Merge pull request #384 from edumur/branch_francois
Browse files Browse the repository at this point in the history
add slope threshold parameter
  • Loading branch information
jenshnielsen authored Jan 29, 2025
2 parents e4845fd + 4dcc99f commit 5f942f2
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/qcodes_contrib_drivers/drivers/Tektronix/FCA3100.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,6 @@ def __init__(self,
instrument:"FCA3100",
**kwargs: Any
) -> None:
"""
Parameter for a complete time statistics containing all measured switching times.
Args:
name: name of the complete time statistics
instrument: Instrument to which the complete time statistic is bound to.
"""
super().__init__(name=name,
instrument=instrument,
label='Times till switching',
Expand Down Expand Up @@ -179,4 +172,22 @@ def __init__(self,
vals=Arrays(shape=(self.samples_number.get_latest,))
)

self.connect_message()
self.add_parameter(name='threshold_slope_A',
label='threshold_slope_A',
get_cmd='INPut1:SLOPe?',
set_cmd='INPut1:SLOPe {}',
get_parser=str,
unit='',
docstring='trigger slope @ threshold channel A'
)

self.add_parameter(name='threshold_slope_B',
label='threshold_slope_B',
get_cmd='INPut2:SLOPe?',
set_cmd='INPut2:SLOPe {}',
get_parser=str,
unit='',
docstring='trigger slope @ threshold channel B'
)

self.connect_message()

0 comments on commit 5f942f2

Please sign in to comment.