Added Pulse Graphics
|
@ -44,9 +44,9 @@ class TXPulse(BaseSpectrometerModel.PulseParameter):
|
|||
def get_pixmap(self):
|
||||
self_path = Path(__file__).parent
|
||||
if self.options["TX Amplitude"].value > 0:
|
||||
image_path = self_path / "resources/pulseparameter/wip_txpulse.png"
|
||||
image_path = self_path / "resources/pulseparameter/TX_Pulse.png"
|
||||
else:
|
||||
image_path = self_path / "resources/pulseparameter/wip_no_txpulse.png"
|
||||
image_path = self_path / "resources/pulseparameter/NoPulse.png"
|
||||
pixmap = QPixmap(str(image_path))
|
||||
return pixmap
|
||||
|
||||
|
@ -65,6 +65,19 @@ class TXPulse(BaseSpectrometerModel.PulseParameter):
|
|||
class RXReadout(BaseSpectrometerModel.PulseParameter):
|
||||
def __init__(self, name) -> None:
|
||||
super().__init__(name)
|
||||
self.add_option("RX", BooleanOption(False))
|
||||
|
||||
def get_pixmap(self):
|
||||
self_path = Path(__file__).parent
|
||||
if self.options["RX"].state == False:
|
||||
image_path = self_path / "resources/pulseparameter/RXOff.png"
|
||||
else:
|
||||
image_path = self_path / "resources/pulseparameter/RXOn.png"
|
||||
pixmap = QPixmap(str(image_path))
|
||||
return pixmap
|
||||
|
||||
def set_options(self, options):
|
||||
self.state = options
|
||||
|
||||
class Gate(BaseSpectrometerModel.PulseParameter):
|
||||
|
||||
|
@ -75,9 +88,9 @@ class Gate(BaseSpectrometerModel.PulseParameter):
|
|||
def get_pixmap(self):
|
||||
self_path = Path(__file__).parent
|
||||
if self.options["Gate State"].state == False:
|
||||
image_path = self_path / "resources/pulseparameter/wip_no_txpulse.png"
|
||||
image_path = self_path / "resources/pulseparameter/GateOff.png"
|
||||
else:
|
||||
image_path = self_path / "resources/pulseparameter/wip_txpulse.png"
|
||||
image_path = self_path / "resources/pulseparameter/GateOn.png"
|
||||
pixmap = QPixmap(str(image_path))
|
||||
return pixmap
|
||||
|
||||
|
|
BIN
src/nqrduck_spectrometer/resources/pulseparameter/GateOff.png
Normal file
After Width: | Height: | Size: 418 B |
BIN
src/nqrduck_spectrometer/resources/pulseparameter/GateOn.png
Normal file
After Width: | Height: | Size: 453 B |
BIN
src/nqrduck_spectrometer/resources/pulseparameter/NoPulse.png
Normal file
After Width: | Height: | Size: 418 B |
BIN
src/nqrduck_spectrometer/resources/pulseparameter/RXOff.png
Normal file
After Width: | Height: | Size: 418 B |
BIN
src/nqrduck_spectrometer/resources/pulseparameter/RXOn.png
Normal file
After Width: | Height: | Size: 563 B |
BIN
src/nqrduck_spectrometer/resources/pulseparameter/TX_Pulse.png
Normal file
After Width: | Height: | Size: 463 B |
Before Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 6.2 KiB |