Skip to content

time-series collecting spectra #118

Answered by ap--
dpmchugh asked this question in Q&A
Jun 17, 2021 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Hi @dpmchugh

Do you mean collect spectra with 5 minute integration time? Or collect a short integration time spectrum every 5 minutes?

the first is possible if your spectrometer supports it. check spec.integration_time_micros_limits to get the supported range in microseconds.

The second depends a lot on your time accuracy requirements.
A simple time.sleep(300 - integration_time) between measurements can do the trick if you dont mind that you accumulate relative time interval error.
Otherwise write a small function that reads the spectrum and use Python's threading.Timer to call it every 5 minutes.

You could also write a small script that opens the spectrometer and appends the measurement …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@dpmchugh
Comment options

@ap--
Comment options

Answer selected by dpmchugh
Comment options

You must be logged in to vote
2 replies
@ap--
Comment options

@mhagdorn
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants