User Tools

Site Tools


ringtirf

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ringtirf [2024/01/25 19:05] – [Scanner Tab] absolute move warning brandonringtirf [2025/06/24 13:41] (current) – [Operation] add more context brandon
Line 5: Line 5:
 This plugin comes with the latest nightly build of [[https://micro-manager.org/Download_Micro-Manager_Latest_Release#nightly-builds|Micro-Manager 2.0]] as of November 2022. This plugin comes with the latest nightly build of [[https://micro-manager.org/Download_Micro-Manager_Latest_Release#nightly-builds|Micro-Manager 2.0]] as of November 2022.
  
-==== Requirements: ====+==== Requirements ====
   *''Micro-Manager 2.0''   *''Micro-Manager 2.0''
   *''Tiger Controller''   *''Tiger Controller''
-  *''PLogic'' card to trigger the camera on ''BNC1''+  *''PLogic'' card to trigger the camera on ''BNC1'' or ''BNC8''
   *''ASI Scanner'' with the ''FAST_CIRCLES'' module   *''ASI Scanner'' with the ''FAST_CIRCLES'' module
  
 If your ''camera'' or ''laser'' is not supported in the plugin yet, but has a ''Micro-Manager Device Adapter'', you can use the acquisition scripts to setup your hardware manually. Please contact ASI and we can integrate your hardware into the plugin if it has a ''Micro-Manager Device Adapter''. If your ''camera'' or ''laser'' is not supported in the plugin yet, but has a ''Micro-Manager Device Adapter'', you can use the acquisition scripts to setup your hardware manually. Please contact ASI and we can integrate your hardware into the plugin if it has a ''Micro-Manager Device Adapter''.
  
-==== Startup ====+==== Plugin Startup ====
  
-When the plugin is first opened, it calls a method that sets up the PLogic card with the correct settings to trigger the camera on BNC1.+When the plugin is first opened a dialog box will ask you to send settings to the PLogic card, click ''"Yes"'' to call the method that sets up the PLogic card with the correct settings to trigger the camera on the output BNC connector. 
 + 
 +There is a button on the scanner tab to send the PLogic program settings in case you click ''"No"''.
  
 This method sets the PLogic device ''"TriggerSource"'' property to ''"1 - Micro-mirror card"'' to synchronize with the scanner. This method sets the PLogic device ''"TriggerSource"'' property to ''"1 - Micro-mirror card"'' to synchronize with the scanner.
  
-All of the devices are discovered when the plugin is first opened: +Devices are set in the ''Device Property Browser'', set these properties before opening the plugin:
- +
-The devices are set in the Device Property Browser:+
   - ''"Core-Galvo"'' => Scanner   - ''"Core-Galvo"'' => Scanner
   - ''"Core-Shutter"'' => PLogic   - ''"Core-Shutter"'' => PLogic
 +
 +The camera trigger output BNC is determined by the ''"PLogicMode"'' preinitialization property:
 +
 +^PLogicMode Property^Output BNC^
 +| ''"diSPIM Shutter"'' | BNC1 |
 +| ''"Four-channel shutter"'' | BNC1 |
 +| ''"Seven-channel shutter"'' | BNC8 |
 +| ''"Seven-channel TTL shutter"'' | BNC8 |
 +
 +==== Operation ====
 +
 +The scanner sweeps the laser beam in a circle around the sample at a fixed rate in hertz.
 +
 +The PLogic device listens to the scanner and outputs a TTL pulse at the completion of each circle.
 +
 +The ''"FastCirclesRate(Hz)"'' property needs to be set to the correct value based on the camera exposure.
 +
 +The scanner laser beam should sweep through a single circle for each camera exposure period in milliseconds.
 +
 +Convert from milliseconds to hertz, the expression ''(1 / Camera Exposure) * 1000'' computes the correct ''"FastCirclesRate(Hz)"''.
 +
 +For example, if we use an exposure of 20 milliseconds, we need to determine how many circles per second: ''(1 / 20 ms) * 1000 = 50 Hz''.
 +
 +There is one missing variable: "Number of Circles"; this is used to sweep multiple circles around the sample per camera exposure period.
 +
 +This changes the computation to: ''(1 / Camera Exposure) * (1000 * Number of Circles)''.
 +
 +Note: increasing "Number of Circles" will also increase the number of TTL pulses per camera exposure period. <wrap lo>Only true for firmware < 3.51, new firmware will emit a single TTL pulse.</wrap>
  
 ==== Acquisition Scripts ==== ==== Acquisition Scripts ====
  
-You can write Beanshell scripts that fire before and after an acquisition. You can write a script that turns the laser on, and one that turns the laser off. You can send serial commands through Beanshell, which can help you get around a lack of device adapter support. If there is a device adapter you can use ''mmc.setProperty()'' to setup your hardware.+You can write Beanshell scripts that run before and after an acquisition. You can write a script that turns the laser on, and one that turns the laser off. You can send serial commands through Beanshell, which can help you get around a lack of device adapter support. If there is a device adapter you can use ''mmc.setProperty()'' to setup your hardware.
  
 Because Beanshell scripts run independently of the acquisition thread, after the startup script is run, the acquisition thread sleeps for the user specified delay in milliseconds to ensure that it can make it to the end of the script before starting the acquisition. You can see an example of measuring the script execution time in the serial command example. Because Beanshell scripts run independently of the acquisition thread, after the startup script is run, the acquisition thread sleeps for the user specified delay in milliseconds to ensure that it can make it to the end of the script before starting the acquisition. You can see an example of measuring the script execution time in the serial command example.
Line 121: Line 149:
  
 You can run an acquisition to test various fast circles radius parameters. Calibration start is the starting fast circles radius, calibration increment is how much the radius increases per image, and calibration images is the number of images to take. Once you decide on the settings, press the ''Calibrate System'' button to start the routine. You can run an acquisition to test various fast circles radius parameters. Calibration start is the starting fast circles radius, calibration increment is how much the radius increases per image, and calibration images is the number of images to take. Once you decide on the settings, press the ''Calibrate System'' button to start the routine.
 +  - Setup
 +    - Set the camera trigger mode to ''external''
 +    - Set the scanner ''"BeamEnabled"'' property to ''"On"''
 +    - Set the scanner ''"FastCirclesRate(Hz)"'' property to ''(1 / exposure) * 1000''
 +    - Set the scanner ''"FastCirclesState"'' to ''"Restart"''.
 +   - Calibration Loop
 +    - Increase scanner ''"FastCirclesRadius(deg)"'' by calibration increment
 +    - Set the scanner ''"FastCirclesState"'' to ''"On"''.
 +    - Snap image with imaging camera
 +    - Set the scanner ''"FastCirclesState"'' to ''"Off"''.
 +   - Finish
 +    - Set the scanner ''"FastCirclesState"'' to ''"Off"''.
 +    - Set the scanner ''"BeamEnabled"'' property to ''"Off"''
 +    - Set the camera trigger mode to ''internal''
 +    - Restore the original ''"FastCirclesRadius(deg)"'' value
 +
 +===== Plugin Interface =====
  
-===== Scanner Tab =====+==== Scanner Tab ====
  
 {{:ringtirf_scannerpanel.png?direct|}} {{:ringtirf_scannerpanel.png?direct|}}
Line 128: Line 173:
 Scanner Control Scanner Control
  
-**Fast Circles Asymmetry:** set the scanner ''"FastCirclesAsymmetry"'' property and then set ''"FastCirclesState"'' to ''"Restart"''.+**Fast Circles Asymmetry:** set the scanner ''"FastCirclesAsymmetry"'' property and then set ''"FastCirclesState"'' to ''"Restart"''. \\ 
 +Reduces the circularity of the scanner beam. The default value is 1.
  
-**Fast Circles Radius:** set the scanner ''"FastCirclesRadius(deg)"'' property and then set ''"FastCirclesState"'' to ''"Restart"''.+**Fast Circles Radius:** set the scanner ''"FastCirclesRadius(deg)"'' property and then set ''"FastCirclesState"'' to ''"Restart"''. \\ 
 +This value is set in degrees.
  
-**Number of Circles:** set the number of circles and then set ''"FastCirclesState"'' to ''"Restart"''.+**Number of Circles:** set the number of circles per camera exposure period and then set ''"FastCirclesState"'' to ''"Restart"''. \\ 
 +Only used if you want to sweep multiple circles of the scanner beam around the sample per camera exposure period. \\ 
 +The default value is 1.
  
 **Beam On:** toggle the scanner ''"BeamEnabled"'' property between ''"On"'' and ''"Off"''. \\ **Beam On:** toggle the scanner ''"BeamEnabled"'' property between ''"On"'' and ''"Off"''. \\
Line 139: Line 188:
  
 **Fast Circles On:** toggle the scanner ''"FastCirclesState"'' property between ''"On"'' and ''"Off"''. \\ **Fast Circles On:** toggle the scanner ''"FastCirclesState"'' property between ''"On"'' and ''"Off"''. \\
-Enable or disable the fast circles mode.+Enable or disable fast circles mode. Toggles between circular and standard scanner beam.
  
 **Set Fast Circles Hz:** set the scanner ''"FastCirclesRate(Hz)"'' property to the following value and then set ''"FastCirclesState"'' to ''"Restart"''. \\ **Set Fast Circles Hz:** set the scanner ''"FastCirclesRate(Hz)"'' property to the following value and then set ''"FastCirclesState"'' to ''"Restart"''. \\
-''FastCirclesRate(Hz) => (1.0 / Camera Exposure) * (1000 * Number of Circles)''. \\+''FastCirclesRate(Hz) => (1 / Camera Exposure) * (1000 * Number of Circles)''. \\
 Computes the fast circles rate in hertz based on the camera exposure. \\ Computes the fast circles rate in hertz based on the camera exposure. \\
  
Line 161: Line 210:
 Other Other
  
-**Save to Flash:** save the scanner settings, this is equivalent to setting the ''"SaveCardSettings"'' property to ''"save settings done"'' in the Device Property Browser.+**Save Settings to Flash:** save the scanner settings, this is equivalent to setting the ''"SaveCardSettings"'' property to ''"save settings done"'' in the Device Property Browser.
  
-===== Datastore Tab =====+==== Datastore Tab ====
  
 {{:ringtirf_datapanel.png?direct|}} {{:ringtirf_datapanel.png?direct|}}
Line 185: Line 234:
 **Script Delay [ms}:** the time in milliseconds to delay after running the startup script **Script Delay [ms}:** the time in milliseconds to delay after running the startup script
  
-===== Main Window =====+==== Main Window ====
  
 **Start Acquisition:** start an acquisition using the plugin settings. \\ **Start Acquisition:** start an acquisition using the plugin settings. \\
Line 192: Line 241:
     - Set the camera trigger mode to ''external''     - Set the camera trigger mode to ''external''
     - Set the scanner ''"BeamEnabled"'' property to ''"On"''     - Set the scanner ''"BeamEnabled"'' property to ''"On"''
-    - Set the scanner ''"FastCirclesRate(Hz)"'' property to ''(1.0 / Camera Exposure) * (1000 * Number of Circles)''+    - Set the scanner ''"FastCirclesRate(Hz)"'' property to ''(1 / Camera Exposure) * (1000 * Number of Circles)''
     - Set the scanner ''"FastCirclesState"'' to ''"Restart"''.     - Set the scanner ''"FastCirclesState"'' to ''"Restart"''.
    - Run Acquisition    - Run Acquisition
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
ringtirf.1706227544.txt.gz · Last modified: by brandon