Re: DP Real-time - access to measurements table from another program
Posted by
clkotnik on
URL: http://astroimagej.170.s1.nabble.com/DP-Real-time-access-to-measurements-table-from-another-program-tp1017p1019.html
RT_Save.ijmI created a macro to use the getResult function to examine specific cells in the Measurements table and sound an alert. I used the IJ.renameResults(oldName,newName) function Alnair pointed out in 2014 to first rename the Measurements table to Results so that getResults actually worked. While this worked, it had two problems. The easy to access "beep()" is not very attention grabbing even when repeated. Worse, some system component started complaining about subsequent updates to the Measurements table apparently because of the rename.
So I decided to fall back to periodically saving the Measurements table with the attached macro. Once started, it will save the measurements table at the rate set by the polling interval and exit when the Measurements table window is closed.
I'll then watch this saved measurements table from my jupyter notebook controlling my imaging.
I'm very happy for anyone to use this however and/or suggest improvements.
best regards,
Cliff
Cliff Kotnik
AAVSO KCLA