Firstly, I want to extend my congratulations on the exceptional work done here. This tool serves as a fantastic interface for open-source or DIY gamma spectrometers.
I have tested the Chrome-based version of the software and found it performs efficiently in chronological mode. However, I encountered an issue in histogram mode: the plot fails to refresh with the arrival of new data.
I've provided the settings I'm utilizing below. Notably, the serial data stream is accurately displayed in the console.
uint16_t spectrum_1[256];
String spectrumStr;
void setup() {
Serial.begin(9600);
for (uint16_t i = 0; i < 256; i++) {
spectrum_1[i] = 1;
}
}
void loop() {
spectrumStr = "";
for (uint16_t i = 0; i < 256; i++) {
//Serial.print(spectrum_1[i]); Serial.print(";");
spectrumStr += "1";
spectrumStr += ";";
}
Serial.println(spectrumStr);
delay(3000);
}
The stream of 1s is correctly shown in the console, but the plot and cts do not reflect this. What am I missing?