Changing parameters of a viewer for different positions of scan #95
-
Hi everyone, I've ran into an interesting issue the other day: we needed to do a very simple scan with one actuator (translation) alternating between position A and B, and measuring a spectrum (1D viewer) at each position. Do you have an idea of how this could be done? I thought of using a Mock Actuator that would "fake move" together with the translation and could control the exposure time of the viewer, but I didn't figure out how to make the daq_move_stage and daq_viewer communicate with each other. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Romain! That sounds a bit tricky, I never had to do something like this but here are my thoughts on this: If I understood correctly you have a DAQ_NDViewer object with an "integration time" float setting that you want to change accordingly to the position of an A/B DAQ_Move. What I would do is create a new DAQ_Move plugin that relies on the same wrapper as your DAQ_NDViewer, that sets the integration time parameter. Then in your preset you can initialize DAQ_Move as master and DAQ_NDViewer as slave. Then you can use it as an actuator to update the setting of your DAQ_Viewer. I used this in a plugin that controls a Keithley ampèremetre + voltage source, you can see it here: It worked for me when I needed to scan the source voltage while measuring current, so I had a single actuator scan there. To sync this with the binary actuator I would then use the tabular scan as explained here: It's probably a bit painful to define values manually but I guess you can create a script that generate the .txt file with the scan positions. I hope this will work out for you. Please let us know! Cheers and have a happy 2023! Nicolas |
Beta Was this translation helpful? Give feedback.
Hi Romain!
That sounds a bit tricky, I never had to do something like this but here are my thoughts on this:
If I understood correctly you have a DAQ_NDViewer object with an "integration time" float setting that you want to change accordingly to the position of an A/B DAQ_Move.
What I would do is create a new DAQ_Move plugin that relies on the same wrapper as your DAQ_NDViewer, that sets the integration time parameter. Then in your preset you can initialize DAQ_Move as master and DAQ_NDViewer as slave. Then you can use it as an actuator to update the setting of your DAQ_Viewer.
I used this in a plugin that controls a Keithley ampèremetre + voltage source, you can see it here:
https://gith…