I’m trying to work my way through some code for a project from long ago that controls the readout from a detector used in a spectrometer. I think success for the project is likely around the corner if I can set the number of readings taken to several hundred or thousand as opposed to the one reading that I’m able to take now. Here is github link. I can program… to some extent… but I’m not a coder so expect some eyebrow raises and some glaring gaps in my coding knowledge to expose themselves.
The short of it is:
Push ‘Read’ Button --> ??? --> Write to file
It’s in the “???” part where I want to add a for loop over the number of readings set by the user and an array that sums the intensity values for each reading from each of the ~3600 pixels of the detector.
The “Read” button is in Spectrometer > Form1.Designer.cs
The Write to file is in the Spectrometer > fileio.cs (I figured this one out all by myself)
So, could someone please tell me
- Where to add my for loop and array?
- Where to add the variable for the number of readings taken?
Please no kitchen sink syndrome - the goal right now for this project is simply to demonstrate this spectrometer can pick up on the type of optical signal we’re after.
If you want to run the program, that’s Spectrometer > bin > Debug > Raman.exe
The interface looks like this:
Here’s a pretty… pretty unfocused… rainbow behind where the detector will go:
And here’s some data with a laser shot straight at the detector: