Compare commits

...

17 Commits

Author SHA1 Message Date
Jan
bb25bcbcad MainCode/adalm1000_logger.py aktualisiert
not working
2025-06-30 16:01:19 +02:00
Jan
7b5b03357a MainCode/adalm1000_logger.py aktualisiert
Proper error handling for the _constant attribute issue
2025-06-30 03:19:29 +02:00
Jan
a958db0601 MainCode/adalm1000_logger.py aktualisiert
Fix: Define self.start_time earlier
(C)
2025-06-30 02:55:18 +02:00
Jan
7fca35989b MainCode/adalm1000_logger.py aktualisiert
File "/home/jan/adalm1000/bin/adalm1000_logger.py", line 691
    self.measurement_thread = MeasurementThread(
                                               ^
SyntaxError: '(' was never closed
fixed
2025-06-30 02:45:14 +02:00
Jan
5881ab7bb7 revert 72c25f7ed373f2e0f4d4c282fc162dbd80aba3ca
revert MainCode/adalm1000_logger.py gelöscht

File "/home/jan/adalm1000/bin/adalm1000_logger.py", line 691
    self.measurement_thread = MeasurementThread(
                                               ^
SyntaxError: '(' was never closed
2025-06-30 02:44:33 +02:00
Jan
72c25f7ed3 MainCode/adalm1000_logger.py gelöscht
File "/home/jan/adalm1000/bin/adalm1000_logger.py", line 691
    self.measurement_thread = MeasurementThread(
                                               ^
SyntaxError: '(' was never closed
2025-06-30 02:40:13 +02:00
Jan
ba583337bb MainCode/adalm1000_logger.py aktualisiert
Change _execute_phase() to accept charge_cutoff, discharge_cutoff

Use the passed-in values instead of nonexistent self.parent.charge_cutoff

Update function calls accordingly

start_time synchronization
(C und D)
2025-06-30 02:37:08 +02:00
Jan
e9799c17de MainCode/adalm1000_logger.py aktualisiert
improves the measurement display 
padding the graph
(C)
2025-06-30 02:04:46 +02:00
Jan
adc7edd501 MainCode/adalm1000_logger.py aktualisiert
.empty() replaced with not deque
(C)
2025-06-30 01:54:21 +02:00
Jan
06546bca76 MainCode/adalm1000_logger.py aktualisiert
QQueue is fully replaced with collections.deque

print(f"Devices found: {self.session.devices}") for debugging

A 1.5-second delay before initializing the session

Proper cleanup of session and threads

A fallback check and exception if no ADALM1000 is detected
2025-06-30 01:49:37 +02:00
Jan
0b7ea8c3c8 MainCode/adalm1000_logger.py aktualisiert
Remove QQueue from the import line.

Use collections.deque or queue.Queue instead.
(C)
2025-06-30 01:02:29 +02:00
Jan
c2780a0fc5 MainCode/adalm1000_logger.py aktualisiert
Thread Safety:

        Replaced threading.Lock with QMutex and QMutexLocker

        Created dedicated TestSequenceThread class using QThread

    Data Handling:

        Replaced deque with QQueue for better Qt integration

        Added data point limiting (10,000 points) to prevent memory issues

    Plot Improvements:

        Smoother auto-scaling with gradual transitions

        Better axis management with hysteresis

    Code Quality:

        PEP 8 compliance (consistent naming, docstrings)

        Type hints for better code clarity

        Google-style docstrings for all public methods

    New Features:

        Progress bar for test phases

        Better tooltips for UI elements

        Enhanced error handling and recovery

    Performance:

        More efficient data buffering

        Optimized plot updates
(D)
2025-06-30 00:48:02 +02:00
Jan
bc77ae2f6b MainCode/adalm1000_logger.py aktualisiert
Entladephase analog zur Ladephase verstärken

    Doppelten msg_box Aufruf entfernen

   (D)
2025-06-28 01:34:27 +02:00
Jan
f779d97397 MainCode/adalm1000_logger.py aktualisiert
(D)
2025-06-28 01:19:18 +02:00
Jan
a5ad053a0c MainCode/adalm1000_logger.py aktualisiert
Zeit bei messbeginn zurücksetzen
(D)
2025-06-28 01:03:50 +02:00
Jan
35bea6bdd1 MainCode/adalm1000_logger.py aktualisiert
Graceful Shutdown Sequence:

        Stop all measurement threads first

        Wait for them to complete

        Then cleanup the USB session

    Error Handling:

        Add more specific exception handling for USB operations

        Consider adding retries for non-critical operations

    Logging:

        Replace print statements with proper logging

        Consider logging to a file for debugging purposes
2025-06-28 00:59:54 +02:00
Jan
1f4b742604 MainCode/adalm1000_logger.py aktualisiert
(D)
2025-06-28 00:50:43 +02:00

File diff suppressed because it is too large Load Diff