top bar

Difference between revisions of "Example Beanshell scripts"

Line 31: Line 31:
 
[[Media:config_test.bsh]] - Shows how to define config groups programmatically.  Will work with the demo-configuration.
 
[[Media:config_test.bsh]] - Shows how to define config groups programmatically.  Will work with the demo-configuration.
  
[[Media:roi_copy.bsh]] - Demonstrates copying of ROI from one camera to another.
+
[[Media:Roi_copy.bsh]] - Demonstrates copying of ROI from one camera to another.
  
  
 
--[[User:Nico|Nico]] 21:04, 15 December 2007 (PST)
 
--[[User:Nico|Nico]] 21:04, 15 December 2007 (PST)

Revision as of 09:46, 28 January 2009

These beanshell scripts can be run from the 'Script Panel' (in the 'Tools' menu). Either load the script in the Script Button Panel (using the 'add' button), or open the script in the editor (using the 'open' button.

Media:sdemo1.bsh - Hello World

Media:sdemo2.bsh - Shows how to use ImageJ functionality within the Beanshell environment

Media:setZoom.bsh - Utility that sets the zoom level of the current ImageJ image window

Media:camera_test.bsh - Example camera test.

Media:image_snap_example.bsh - Shows how to snap (but not display) an image

Media:image_snap_example_2.bsh - Shows how to snap and display an image. The image window must already be open (Snap an image once manually before running the plugin).

Media:snapAndMeasure.bsh - Shows how to use the ImageJ 'Measure' command that updates with every new image snapped.

Media:live_demo.bsh - Shows how to process an image during acquisition. Needs the DemoStreamingCamera to work.

Media:burst.bsh - Shows how to start burst mode from a script. Also shows how to save to file during acquisition. Needs burst mode capable camera.

Media:testAcq.bsh - Demonstrates how to perform 5D image acquisition using the gui object.

Media:manualAcq.bsh - Executes 5D acquisition, prompting the user to change the filters/dichroics between channel changes

Media:multiFastZStackASI.bsh - Script used at the ASCB meeting 2008 to synchronize Arduino, camera, AOTF and piezo stage to do fast multi-channel Z-stack acquistion

Media:PositionList.bsh - Shows how to build a positionList programmatically

Media:Init.bsh - Shows how to configure the sytem programmatically, i.e. without using configuration files. The GUI changes will not be visible until you manually run the command 'Rebuild GUI' or 'Refresh GUI' (Tools menu).

Media:config_test.bsh - Shows how to define config groups programmatically. Will work with the demo-configuration.

Media:Roi_copy.bsh - Demonstrates copying of ROI from one camera to another.


--Nico 21:04, 15 December 2007 (PST)

© Micro-Manager : Vale Lab, UCSF 2006-2011 | All Rights Reserved | Contact