Replies: 4 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
-
Hmm, that's currently not possible, but it sounds doable. The only issue is that you cannot automatically save files to a users computer without asking for permission in some way. I could ask for permission to write to a single file before starting the recording and then store all the individual spectra into one file. That could definitely be done. You'd have to individually load every spectrum from this one file after everything's done if you want to look at the results. Would that be ok? I could also do sort of a 3D bar chart like in impulse, which would be a lot nicer to look at than just all the spectra individually. I think that goes in the right direction of what you're thinking about, right? |
Beta Was this translation helpful? Give feedback.
-
I read that "Browsers can store up to 5 MiB of local storage, and 5 MiB of session storage per origin." How much would I want? I don't think anything recorded by any of my instruments has true 4095 points worth of resolution, even without the funky Pi-Pico ADC channel width issues. So presuming I could usefully represent one spectrum using 1000 channels, each being a 32-bit value, then one spectrum takes only 4k memory. So if there weren't other things to store, seems like there's space for over 1000 spectrums in this private browser memory. Or 250, even at the full 4k points which is arguably sort of without much meaning at least on the current Pi-Pico. Either way it would be good enough for anything I had in mind. https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria |
Beta Was this translation helpful? Give feedback.
-
I write some very simple Python to try what I wanted, and it works ok for me so far. I'm just decimating the original 4096 channels from the OpenGamma board down to 409 channels for storage and display, using OpenGammaRec.py and plot-stack.py in https://github.com/jbeale1/gamma |
Beta Was this translation helpful? Give feedback.
-
I am wondering if it is already possible, or would be easy to add, the capability to record a sequence of fixed-time-interval spectra automatically. For example, accumulate a spectrum for 1 hour, save the JSON file, clear that data and immediately start accumulating another spectrum for the next hour, and so on. This would be useful for tracking any shifts in the spectrum (or the hardware) over time.
Beta Was this translation helpful? Give feedback.
All reactions