Commit Graph

114 Commits

Author SHA1 Message Date
21df1bc6cf Incallbacks should not return anything anymore. From inheritance to composition for InDataHandler code. StreamMgr singleton only weak ptr stored, this makes sure destruction from Python is more often done. UlDAQ code back to working.
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-09 10:43:04 +02:00
028bed9229 One forgotten debugtrace back to disabled 2023-06-07 21:51:03 +02:00
c87a5cec25 StreamMgr handle now via shared pointers. InDataHandler stores weak pointers. Reset callback in PyInDataHandler could be problematic. Refactored the UlDaq code and moved to a subfolder. 2023-06-07 21:49:07 +02:00
6fc1bd90b1 Moved IndataHandler to its own implementation file. Refactored some code. Fixed race conditions when starting and stopping indatahandlers. It appears that this does not solve the segfault, but is at least mitigates some race conditions when constructors are not ready on an object, and avoiding the call of virtual functions of an object which destructor has already been called. Added some extra assert check that a function is called from the right thread. Put explicit start and stop methods in constructor / destructor of PyInDataHandler. WARNING: this means all .start() and .stop() methods should be removed. THIS IS AN API break!
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-06 16:05:24 +02:00
dd2bbb5973 Some improvements in the clearyness of meaning in uldaq code. No bugs found. 2023-06-06 15:57:20 +02:00
ae3f8043e0 Bugfix: not cleanup done of h5 dataset in recording. That might be problematic
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-02 14:25:17 +02:00
43cf2427ea Workaround for bug in RtAudio when first channel not equal to 0
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-25 16:52:55 +02:00
a1a7b411f1 Updates and bugfixes on fromnpy in Measurement
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-16 12:12:36 +02:00
24de84a4f7 Some doc update
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-21 13:27:45 +02:00
3844827505 Merge remote-tracking branch 'origin/develop' into develop
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 15:56:35 +02:00
fb9920d00a Bugfix: Made Uldaq sample rate check depending on actually provided sample rates 2023-04-18 11:09:01 +02:00
e09b00d801 Changed argument of Measurement.exportAsWave() from newsampwidth to dtype, to allow export as float
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-14 17:04:27 +02:00
f1348ede80 Cached time string of measurement time stamp
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-03 13:16:39 +02:00
bdef0b45f3 Added first-order HP and LP compensation filters to the biquad class
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-22 16:23:57 +01:00
f164aa2e71 Important BUG: opening a measurement tried to load the comment from the wrong place. Was stored as an attributed but was tried to recover as a dataset.
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-12 13:02:18 +01:00
ec2a933e20 Important BUGfix: effectively there was no sleep period in the thread handling the data from the UlDAQ
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-10 16:27:51 +01:00
617eded04e Bugfix for non-consecutive channel counts in UlDAQ
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-10 15:53:55 +01:00
2b22af5d2c Merge remote-tracking branch 'origin/develop' into develop
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-10 15:44:48 +01:00
92f5b18481 Not allowing a monitor when not running in duplex mode 2023-03-10 15:44:19 +01:00
8547d0915a Added low-pass and high-pass compensator filters
All checks were successful
continuous-integration/drone/push Build is passing
2023-03-09 10:16:44 +01:00
fa8f5e64ad Update to new smoothing algorithm. Should be made faster.
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-23 18:10:06 +01:00
b3fb7ddb6d Smoothing: minor bug fix
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-23 16:37:08 +01:00
cacfc7fe6c Merge branch 'develop' into rt_signalviewer
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-20 09:38:42 +01:00
480b036e02 Merge branch 'develop' into rt_signalviewer 2023-02-19 11:08:43 +01:00
78a94cec81 Added measurementset
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-19 11:06:22 +01:00
ef155c1acb Added measurementset class 2023-02-19 11:05:09 +01:00
b61fb7b014 Split timeweighting into different types for each of the possible use cases.
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-03 20:41:59 +01:00
5a7ae3eb33 Bugfix: do not open a measurement for writing on constructor of measurement
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-01 22:41:54 +01:00
e435dc9ecd Add: ClipHandler
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-27 14:56:46 +01:00
4fde79b64b Expanded Octave and ThirdOctave filter banks to lower frequencies
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-27 14:26:44 +01:00
00fbcca097 Fixed Doxygen warnings on not properly documented methods
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-20 15:59:08 +01:00
f3e4bc70ea DeviceInfo is now base class for derived variants for UlDaqDeviceInfo and RtAudioDeviceInfo. Dynamic casts are used in contstructors when stream is created. For UlDaq, device inventory list is not scanned anymore when starting device. This should speed up starting the device as well. Added a flag duplexModeForced to DeviceInfo. This one is true for DT9837A, as this device can only use input and output at the same time when running in duplex mode. Fixed the bug of printing an Uldaq error called noerror.
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-20 15:50:51 +01:00
1bdf318f1b Merge remote-tracking branch 'origin/develop' into develop 2023-01-20 14:23:18 +01:00
ca4023ee23 Documentation updates. 2023-01-20 14:22:48 +01:00
afdec26d49 Smoothing matrix stored in memory instead of file
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-19 16:58:26 +01:00
b19c5ad38e Replaced for loop by vector calculation, limit memory size of smoothing matrix 2023-01-17 09:05:39 +01:00
f5ed88cf07 It somewhat works
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-16 18:30:11 +01:00
0e31dbceac Bugfix: FilterBankDesigner now always returns second order sections with shape (SOS_ORDER, 6), even for the high pass section. Expanded the third octave bank compliance test. Since it passed for all common sample rates, I removed the warning that the filters might be non-compliant for fs unequal to 48 kHz. 2023-01-09 11:59:48 +01:00
786afc3fac FilterBankDesigner now handles sampling frequencies other than 48 kHz; added norm compliance test script. If part of the (1/3 or 1/1) octave band lies above the Nyquist frequency, a high pass filter is returned. If the whole band lies above the Nyquist frequency, a no pass filter is returned. 2023-01-06 09:44:34 +01:00
eedd6d83b4 Improved handling of EQ when fs=44.1k a bit, including suggestion to use 48k 2023-01-05 17:06:32 +01:00
c7045a81e9 Added real time signal viewer 2023-01-05 10:35:47 +01:00
24b9a24b04 Bugfix and code formatting. 2023-01-04 15:15:03 +01:00
8befe4afc8 Splitted UlDAQ code in header and cpp file to make a more logical separation between declaration and implementation. BUGFIX: lasp_record did not return True in self.finish(), resulting in a stream stop. 2023-01-04 14:21:39 +01:00
44c3e390b3 Added more specific default calibration values 2023-01-04 12:09:05 +01:00
ab07acd60c Some bugfixes 2022-11-14 11:11:03 +01:00
f4c4a883c6 Small comment change 2022-11-11 13:51:10 +01:00
0c0a86dc64 Update RtAudio backend to overwrite default samplerate to 48 kHz, if available 2022-11-11 12:35:52 +01:00
fbb14f475c Added offset_t option to SLM(); removed trailing spaces 2022-11-10 11:39:44 +01:00
e405ab8eea Bugfix in lasp_measurement.py/CPS() 2022-11-08 14:27:16 +01:00
6517fb0029 Bugfix: Sweep reaches from fl to fu within actual sweep time instead of [sweep time + quiescent time] 2022-10-27 15:00:17 +02:00