|
| 1 | +"""Classes for devices channels that out outputs""" |
| 2 | + |
1 | 3 | import sys
|
2 | 4 |
|
3 | 5 | import numpy as np
|
@@ -1492,61 +1494,6 @@ class StaticDigitalOut(StaticDigitalQuantity):
|
1492 | 1494 | description = "static digital output"
|
1493 | 1495 |
|
1494 | 1496 |
|
1495 |
| -class AnalogIn(Device): |
1496 |
| - """Analog Input for use with all devices that have an analog input.""" |
1497 |
| - description = "Analog Input" |
1498 |
| - |
1499 |
| - @set_passed_properties(property_names={}) |
1500 |
| - def __init__( |
1501 |
| - self, name, parent_device, connection, scale_factor=1.0, units="Volts", **kwargs |
1502 |
| - ): |
1503 |
| - """Instantiates an Analog Input. |
1504 |
| -
|
1505 |
| - Args: |
1506 |
| - name (str): python variable to assign this input to. |
1507 |
| - parent_device (:obj:`IntermediateDevice`): Device input is connected to. |
1508 |
| - scale_factor (float, optional): Factor to scale the recorded values by. |
1509 |
| - units (str, optional): Units of the input. |
1510 |
| - **kwargs: Keyword arguments passed to :func:`Device.__init__`. |
1511 |
| - """ |
1512 |
| - self.acquisitions = [] |
1513 |
| - self.scale_factor = scale_factor |
1514 |
| - self.units=units |
1515 |
| - Device.__init__(self, name, parent_device, connection, **kwargs) |
1516 |
| - |
1517 |
| - def acquire( |
1518 |
| - self, label, start_time, end_time, wait_label="", scale_factor=None, units=None |
1519 |
| - ): |
1520 |
| - """Command an acquisition for this input. |
1521 |
| -
|
1522 |
| - Args: |
1523 |
| - label (str): Unique label for the acquisition. Used to identify the saved trace. |
1524 |
| - start_time (float): Time, in seconds, when the acquisition should start. |
1525 |
| - end_time (float): Time, in seconds, when the acquisition should end. |
1526 |
| - wait_label (str, optional): |
1527 |
| - scale_factor (float): Factor to scale the saved values by. |
1528 |
| - units: Units of the input, consistent with the unit conversion class. |
1529 |
| -
|
1530 |
| - Returns: |
1531 |
| - float: Duration of the acquistion, equivalent to `end_time - start_time`. |
1532 |
| - """ |
1533 |
| - if scale_factor is None: |
1534 |
| - scale_factor = self.scale_factor |
1535 |
| - if units is None: |
1536 |
| - units = self.units |
1537 |
| - self.acquisitions.append( |
1538 |
| - { |
1539 |
| - "start_time": start_time, |
1540 |
| - "end_time": end_time, |
1541 |
| - "label": label, |
1542 |
| - "wait_label": wait_label, |
1543 |
| - "scale_factor": scale_factor, |
1544 |
| - "units": units, |
1545 |
| - } |
1546 |
| - ) |
1547 |
| - return end_time - start_time |
1548 |
| - |
1549 |
| - |
1550 | 1497 | class Shutter(DigitalOut):
|
1551 | 1498 | """Customized version of :obj:`DigitalOut` that accounts for the open/close
|
1552 | 1499 | delay of a shutter automatically.
|
|
0 commit comments