added test run scirpt

This commit is contained in:
Martino Ferrari committed 2026-11-06 13:42:20 +01:00
1 parent 50d85363a3
commit 05b9490b06
2 files changed
+113 -186

No files matched your search

+11 -4
View File
@@ -81,11 +81,16 @@ fi
# Distinct amplitude/frequency/phase per channel so traces stay tellable apart
# (and so a shared-Y-axis view has a spread of magnitudes to cope with).
AMPS=(1.0 2.5 0.5 5.0 1.5 3.0 0.8 4.0 2.0 0.3 6.0 1.2 3.5)
FREQS=(1000 2000 5000 500 10000 3000 20000 1500 7000 50000 800 4000 15000)
FREQS=(1 2000 5000 500 10000 3000 20000 1500 7000 50000 800 4000 15000)
PHASES=(0.0 0.7854 1.5708 2.3562 3.1416 3.9270 4.7124 5.4978 0.3927 1.1781 1.9635 2.7489 3.5343)
ELEMS=1000 # samples per cycle
RATE=1000 # cycles per second -> 1 Msps
ELEMS=10000 # samples per cycle
RATE=100 # cycles per second -> 1 Msps
# Declared to UDPStreamer as SamplingRate, which is the only per-signal rate it
# puts on the wire. Without it the CONFIG descriptor carries 0 and consumers show
# no rate — decoding is unaffected (FullArray signals are dated per element from
# TimeArray), but the metadata is what a client displays.
SAMPLING_RATE=$(( ELEMS * RATE ))
CYCLE_BYTES=$(( 8 * ELEMS + CHANNELS * 4 * ELEMS ))
PAYLOAD=$(( CYCLE_BYTES + 2000 )) # headroom for header + descriptors
@@ -137,6 +142,7 @@ for (( i = 1; i <= CHANNELS; i++ )); do
RangeMax = ${amp}
TimeMode = \"FullArray\"
TimeSignal = TimeArray
SamplingRate = ${SAMPLING_RATE}.0
}"
func_list+=", SineGAM${i}"
done
@@ -242,7 +248,7 @@ ${sine_gams}
// One cycle is ${CYCLE_BYTES} B; sizing the payload above that sends each
// cycle as a single datagram, which keeps the receiver's reassembly pool
// from evicting in-flight cycles and gapping the trace.
MaxPayloadSize = ${PAYLOAD}
MaxPayloadSize = 1400 //${PAYLOAD}
PublishingMode = "Strict"
Signals = {
TimeArray = {
@@ -250,6 +256,7 @@ ${sine_gams}
Unit = "ns"
NumberOfDimensions = 1
NumberOfElements = ${ELEMS}
SamplingRate = ${SAMPLING_RATE}.0
}${stream_sigs}
}
}