top bar

Difference between revisions of "Example Beanshell scripts"

Line 1: Line 1:
 
These beanshell scripts can be run by loading them into the 'Scripting Console' (in the 'Tools' menu).  In the Scripting Console, use 'File -> Open' to load the scripts.
 
These beanshell scripts can be run by loading them into the 'Scripting Console' (in the 'Tools' menu).  In the Scripting Console, use 'File -> Open' to load the scripts.
  
[[Media:Init.bsh]] - Shows how to configure the sytem programmatically, i.e. without using configurationf files. The GUI changes will not be visible until you manually run the command 'Rebuild GUI' or 'Refresh GUI' (Tools menu).
+
[[Media:sdemo1.bsh]] - Hello World
  
[[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: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:camera_test.bsh]] - Example camera test.
 
[[Media:config_test.bsh]] - Shows how to define config groups programmatically.  Will work with the demo-configuration.
 
  
 
[[Media:image_snap_example.bsh]] - Shows how to snap (but not display) an image
 
[[Media:image_snap_example.bsh]] - Shows how to snap (but not display) an image
Line 15: Line 15:
 
[[Media:live_demo.bsh]] - Shows how to process an image during acquisition.  Needs the DemoStreamingCamera to work.
 
[[Media:live_demo.bsh]] - Shows how to process an image during acquisition.  Needs the DemoStreamingCamera to work.
  
[[Media:multi.bsh]] - Shows how to acquire a multi-channel imageWill need editing to match current channel definitions.
+
[[Media:burst.bsh]] - Shows how to start burst mode from a scriptAlso shows how to save to file during acquisition.  Needs burst mode capable camera.
  
[[Media:sdemo1.bsh]] - Hello World
+
[[Media:testAcq.bsh]] - Demonstrates how to perform 5D image acquisition using the gui object.
 +
 
 +
[[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:sdemo2.bsh]] - Shows how to use ImageJ functionality within the Beanshell environment
 
  
 
--[[User:Nico|Nico]] 21:04, 15 December 2007 (PST)
 
--[[User:Nico|Nico]] 21:04, 15 December 2007 (PST)

Revision as of 08:05, 4 April 2008

These beanshell scripts can be run by loading them into the 'Scripting Console' (in the 'Tools' menu). In the Scripting Console, use 'File -> Open' to load the scripts.

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: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: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.


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

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