runviewer feature: non-linear time

33 views
Skip to first unread message

Alexander Chuang

unread,
Jun 24, 2022, 2:59:44 PMJun 24
to the labscript suite
I am porting the control of an experiment to labscript, from a GUI based control software. In the process of learning to write and debugging new scripts, runviewer has been an extremely useful tool to catch my mistakes!

While browsing the runviewer github repo, I stumbled upon traces which have a non-linear time axis from an issue originating from Jan Werkmann's report: https://github.com/labscript-suite/runviewer/issues/14 

68747470733a2f2f6269746275636b65742d617263686976652e6c616273637269707473756974652e6f72672f646174612f6269746275636b65742e6f72672f7265706f2f416579796e452f696d616765732f313139363236353538312d73637265656e73686f742e706e67.png

This non real-time plotting of the traces seems quite sensible in that each logical portion of the experiment sequence gets roughly the same visual representation. As I understand, the real-time visualization can be dominated by long, slow ramps (e.g. forced evaporations), while the "science" portion of the experiment remains hidden behind multiple zooms. 

Is there an official feature which allows me to visualize experiments as in the attached photo, or do folks have suggestions on how I might better use runviewer? If not, I would be happy to contribute to runviewer, and if it's appropriate, I can move this conversation to the github issue tracker instead.

Chris Billington

unread,
Jun 25, 2022, 3:44:12 AMJun 25
to labscri...@googlegroups.com
Hi Alex,

Yes, this feature exists officially. To use it, you can add "time markers" in your experiment script with the add_time_marker() function:


This labels points in time that should be used by runviewer to make a nonlinear time axis. Runviewer will allocate an equal amount of space on its y axis to the time in between each pair of adjacent time markers. In runviewer, you'll want to click the "space markers evenly" button in the toolbar above the plots.

Regards,

Chris



--
You received this message because you are subscribed to the Google Groups "the labscript suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to labscriptsuit...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/labscriptsuite/1a22401d-66af-4a84-92b4-01736b2ffb96n%40googlegroups.com.

dihm....@gmail.com

unread,
Jun 25, 2022, 6:58:11 PMJun 25
to the labscript suite
TIL runviewer markers can do nonlinear time.

Alex, if you are still interested in contributing, it appears that an update to the runviewer documentation is in order. Something very brief and simple about setting up markers correctly (with a cool looking screenshot and a cross-link to the docs page Chris posted) would certainly be appreciated.

-David

Alexander Chuang

unread,
Jun 27, 2022, 11:40:59 AMJun 27
to the labscript suite
Hi Chris,

Thanks for the pointer, this is exactly what I was looking for!

Best,
Alex

PS David, I'll be playing with this feature a bit and can definitely look into adding to the docs.

Reply all
Reply to author
Forward
0 new messages