Commit Graph
16 Commits
Author SHA1 Message Date
Jon BenistonandClaude Opus 5 d7bc4a94e4 TestSource: period and duty cycle for the P1 and P2 patterns
The sawtooth and square patterns had a fixed 1000 sample pulse width. Both
now take a period, and the square pattern a duty cycle, from the GUI, a
preset or the web API, with the period shown in seconds beside the sample
count.

A period of zero divides by zero in the sawtooth and wraps the unsigned
sample counter in the square pattern, giving a cycle of four billion
samples, so it is refused at every entrance: a minimum of one on the spin
box, a clamp when an older or hand edited preset is read, a clamp on the
web API, and a clamp in the worker for anything that reaches it another
way. The duty cycle is held to 0 to 100 the same way.

Also fixes the worker's timer. It is now parented to the worker so that it
moves to the worker thread with it, and it runs between startWork and
stopWork rather than from construction. TestSourceInput::stop() runs in
another thread, and Qt will not stop a timer from one, so the stop is
asked of the worker and waited for. The m_running flag it replaces is
gone, along with the test of it in every tick.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 19:42:07 +01:00
f4exb 63348eeee1 Make device title editable in the basic device settings. Fixes #2292 2026-01-28 03:05:39 +01:00
f4exb b6c4d10b62 Rewriting of copyright notices for plugins/samplesource. Part of #1893 2023-11-18 10:07:41 +01:00
f4exb 922cfc695e Test source: Make settings assignments atomic. Part of #1329 2022-10-29 21:55:52 +02:00
f4exb 249db03cf3 Massive UI revamping (v7): fixed device workspace index save/restore and removed useless geometry blobs. Fixes #1207 2022-04-20 20:08:41 +02:00
f4exb aad90aeabc Massive UI revamping (v7): devices basic 2022-04-07 16:32:03 +02:00
f4exb e6e7ece46c Removed file recording function from device plugins 2020-08-09 00:47:06 +02:00
f4exb 4bb0f4f51a Fixed incomplete copyright headers (2): plugins/samplesource 2019-04-11 06:57:41 +02:00
f4exb 35538ab9c1 Reverse API: Test Source changes (1) 2018-12-17 18:39:09 +01:00
f4exb 775b2a270d File record default file name fix (2) 2018-05-09 17:39:48 +02:00
f4exb 1d9ab62a4a Test source: added AM and FM modulations 2018-02-11 13:48:17 +01:00
f4exb 6b26543655 Test Source: new combo box for auto correction options (2) 2018-02-04 22:52:31 +01:00
f4exb 5f49dff49d Bumped version to 3.12.0. Test Source: new combo box for auto correction options 2018-02-04 18:46:22 +01:00
f4exb 373aa6960f Test Source: add phase imbalance control 2018-01-31 22:34:55 +01:00
f4exb bd8c916dd4 TestSource: implemente DC and IQ bias and corrections 2018-01-14 11:58:36 +01:00
f4exb 34f6b796b7 TestSource: first implementation 2018-01-14 02:25:24 +01:00