Code for measuring pupil diameter after stimulus with red or blue light for addiction project
2 Jan 2024
code modified from the old sheeple code
code was renamed to OpEd and copy was placed on mbolding google drive in projects folder.
VIs were copied from the HP laptop core i7 pgamlin
the arduno code was failing because it was the wrong code, so pupilthing3 code was reflashed to the arduino UNO.
flashing failed because
arduino agent was out of date on the old laptop, also
flashing failed unless the big capacitor bridging "reset" and "gnd" was removed. idk...
everything seems to work now on the new desktop computer, but needs to be tested more.
started modifying the code to look like the new interface Paul wants
bunch of new changes requested.
Things went quite well during our training session. There were just a few minor issues.
We now plan to collect data for only 40 seconds after the flash. It’s easier on the subjects. Can you change the time of acquisition and the display?
In the threshold window. The Upper values only need to go to about 50 – not the entire 255 range. This will make it easier for people to adjust more precisely.
Could each of the 3 pupil windows be made 50% larger?
There were quite a few zeroes in the pupil data and the red circle wasn’t locking in all the time. I wonder if it can be made a little more robust? If not, I also think it would be OK to interpolate over a few data points so long as we state how the interpolation is done in any publication.
We will need an alignment cross in the right eye camera window based on the entered IPD. It should be centered for a 63 mm IPD and moved left/right a number of pixels based on the following formula: (63-IPD)*(value of pixels per mm). The image below shows where the alignment crosses should be if everything works.
OpEd
Code for measuring pupil diameter after stimulus with red or blue light for addiction project
2 Jan 2024
code modified from the old sheeple code code was renamed to OpEd and copy was placed on mbolding google drive in projects folder. VIs were copied from the HP laptop core i7 pgamlin the arduno code was failing because it was the wrong code, so pupilthing3 code was reflashed to the arduino UNO. flashing failed because
code is in matlab and is here for now: https://drive.google.com/drive/folders/1q3xzNfAmgH-raFEZ4UaT7g7wt-l6kHZb