digilent 0.17.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
digilent/__init__.py ADDED
File without changes
@@ -0,0 +1,19 @@
1
+ __all__ = [
2
+ "show_processes",
3
+ ]
4
+
5
+ import re
6
+
7
+ from egse.process import ProcessInfo
8
+ from egse.process import get_processes
9
+
10
+
11
+ def show_processes():
12
+ """Returns of list of ProcessInfo data classes for matching processes from this package."""
13
+
14
+ def filter_procs(pi: ProcessInfo):
15
+ pattern = "dt8874"
16
+
17
+ return re.search(pattern, pi.command)
18
+
19
+ return get_processes(filter_procs)
@@ -0,0 +1,59 @@
1
+ import subprocess
2
+ from typing import Annotated
3
+
4
+ import sys
5
+
6
+ import rich
7
+ import typer
8
+
9
+ from egse.system import redirect_output_to_log, all_logging_disabled
10
+
11
+ dt8874 = typer.Typer(
12
+ name="dt8874", help="Digilent MEASURpoint DT8874, temperature and voltage monitoring", no_args_is_help=True
13
+ )
14
+
15
+
16
+ @dt8874.command(name="start")
17
+ def start_dt8874(
18
+ simulator: Annotated[
19
+ bool, typer.Option("--simulator", "--sim", help="use a device simulator as the backend")
20
+ ] = False,
21
+ ):
22
+ """Start the Digilent MEASURpoint DT8874 Control Server.
23
+
24
+ The Control Server is always started in the background.
25
+ """
26
+
27
+ rich.print(f"Starting the Digilent MEASURpoint DT8874 Control Server - {simulator = }")
28
+ out = redirect_output_to_log("dt8874_cs.start.log")
29
+
30
+ cmd = [sys.executable, "-m", "egse.digilent.measurpoint.dt8874.dt8874_cs", "start"]
31
+ if simulator:
32
+ cmd.append("--simulator")
33
+
34
+ subprocess.Popen(cmd, stdout=out, stderr=out, stdin=subprocess.DEVNULL, close_fds=True)
35
+
36
+
37
+ @dt8874.command(name="stop")
38
+ def stop_tcu():
39
+ """Stops the Digilent MEASURpoint DT8874 Control Server."""
40
+
41
+ rich.print("Stopping the Digilent MEASURpoint DT8874 Control Server")
42
+ out = redirect_output_to_log("tcu_cs.stop.log")
43
+
44
+ cmd = [sys.executable, "-m", "egse.digilent.measurpoint.dt8874.dt8874_cs", "stop"]
45
+ subprocess.Popen(cmd, stdout=out, stderr=out, stdin=subprocess.DEVNULL, close_fds=True)
46
+
47
+
48
+ @dt8874.command(name="status")
49
+ def status_dt8874():
50
+ """Prints the status information about the Digilent MEASURpoint DT8874 Control Server."""
51
+
52
+ with all_logging_disabled():
53
+ from egse.digilent.measurpoint.dt8874 import dt8874_cs
54
+
55
+ dt8874_cs.status()
56
+
57
+
58
+ if __name__ == "__main__":
59
+ dt8874()
digilent/settings.yaml ADDED
@@ -0,0 +1,23 @@
1
+ PACKAGES:
2
+ DIGILENT: Digilent temperature and voltage monitoring
3
+
4
+
5
+ Digilent MEASURpoint DT8874:
6
+
7
+ DEVICE_NAME: DT8874
8
+ HOSTNAME: 10.33.179.128
9
+ PORT: 5025
10
+ TIMEOUT: 60
11
+
12
+ Digilent MEASURpoint DT8874 Control Server:
13
+
14
+ SERVICE_TYPE: DT8874
15
+ PROCESS_NAME: dt8874_cs
16
+ PROTOCOL: tcp
17
+ HOSTNAME: localhost # The hostname that client shall connect to, e.g. pleiad01 @ KU Leuven
18
+ COMMANDING_PORT: 0 # The port on which the controller listens to commands - REQ-REP
19
+ MONITORING_PORT: 0 # The port on which the controller sends periodic status information of the device - PUB-SUB
20
+ SERVICE_PORT: 0 # The port on which the controller listens for configuration and administration - REQ-REP
21
+ METRICS_PORT: 0 # The HTTP port where Prometheus will connect to for retrieving metrics
22
+ DELAY: 10 # The delay time between publishing status information [seconds]
23
+ STORAGE_MNEMONIC: DT8874 # The mnemonic to be used in the filename storing the housekeeping data
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.4
2
+ Name: digilent
3
+ Version: 0.17.4
4
+ Summary: Digilent temperature and voltage monitoring for CGSE
5
+ Author: IvS KU Leuven
6
+ Maintainer-email: Rik Huygen <rik.huygen@kuleuven.be>, Sara Regibo <sara.regibo@kuleuven.be>
7
+ License-Expression: MIT
8
+ Keywords: CGSE,Common-EGSE,hardware testing,software framework
9
+ Requires-Python: >=3.10
10
+ Requires-Dist: cgse-common
11
+ Requires-Dist: cgse-core
12
+ Provides-Extra: test
13
+ Requires-Dist: pytest; extra == 'test'
14
+ Requires-Dist: pytest-cov; extra == 'test'
15
+ Requires-Dist: pytest-mock; extra == 'test'
16
+ Description-Content-Type: text/markdown
17
+
18
+ # Digilent MEASURpoint/TEMPpoint/VOLTpoint
19
+
20
+ ## Reference Documents
21
+
22
+ - User's Manual for Standard TEMPpoint, VOLTpoint, and MEASURpointLXI Instruments (DT8871, DT8871U, DT8872, DT8873, DT8874)
23
+ - SCPI Programmer's Manual for LXI Measurement Instruments (for TEMPpoint, VOLTpoint, and MEASURpoint Instruments)
@@ -0,0 +1,16 @@
1
+ digilent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ digilent/cgse_explore.py,sha256=gqvtBkToEjy1UVVvv2bO3BjXBPZDsMmjSxt75IIgD2E,398
3
+ digilent/cgse_services.py,sha256=3rjZVbZso-ARqFYVhfaR3zsX5fJF6aYHNUaBWc6-fsk,1729
4
+ digilent/settings.yaml,sha256=P4uuM5QX1-y5xhWmWQ1uPCxWyxJRkSfI9SigpITsx58,1269
5
+ egse/digilent/digilent.py,sha256=NBglkJsUMY2D5KBxHvOF6H23sO05N9d59YqwgGYmwjg,100811
6
+ egse/digilent/measurpoint/digilent_devif.py,sha256=wSi169uDxAeC-4HPAl-LyOnlnC04vaeR8WgU_5VyXBQ,10389
7
+ egse/digilent/measurpoint/dt8874/__init__.py,sha256=szontbAKG42iRaylOFyd8lFU_xO59QI-4ignWlr-qzU,1071
8
+ egse/digilent/measurpoint/dt8874/dt8874.py,sha256=N_CArad2fkXAajBMdYziZDymm5-x_-TqSpIrZDB6dh8,2364
9
+ egse/digilent/measurpoint/dt8874/dt8874.yaml,sha256=E1DtHcdi2DczoQx5w1QxZSoot17SMJ3bcXl5KG6QfEY,1490
10
+ egse/digilent/measurpoint/dt8874/dt8874_cs.py,sha256=Pag-ushBUmSf6WAPpiXGdxFRPiwT94wVoncKu-gm4xI,11489
11
+ egse/digilent/measurpoint/dt8874/dt8874_devif.py,sha256=f_zB2A9xgHhsBuEf-gyAwlTOETdvRxxcddE8wNVl0pM,598
12
+ egse/digilent/measurpoint/dt8874/dt8874_protocol.py,sha256=4lHGNjQMTi0Q0UUtkwUVAE087kpB30R7t6BL55bJHLE,5594
13
+ digilent-0.17.4.dist-info/METADATA,sha256=FUwbsAqJheZqw93pa-TCOKvZR7G2sHujM9kRyAN2L_Q,887
14
+ digilent-0.17.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
15
+ digilent-0.17.4.dist-info/entry_points.txt,sha256=E0HJ-3SZhE3h37apAXsT-MJuTaN1oJmnlDoftwnxOOM,369
16
+ digilent-0.17.4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.28.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,15 @@
1
+ [console_scripts]
2
+ dt8874_cs = egse.digilent.measurpoint.dt8874.dt8874_cs:app
3
+ dt8874_sim = egse.digilent.measurpoint.dt8874.dt8874_sim:app
4
+
5
+ [cgse.explore]
6
+ explore = digilent.cgse_explore
7
+
8
+ [cgse.service.device_command]
9
+ dt8874 = digilent.cgse_services:dt8874
10
+
11
+ [cgse.settings]
12
+ digilent = digilent:settings.yaml
13
+
14
+ [cgse.version]
15
+ digilent = egse.version:get_version_installed