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 20:20] – [Acquisition Scripts] 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
  
Line 15: Line 15:
 ==== Plugin 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 ==== ==== Operation ====
Line 33: Line 41:
 The ''"FastCirclesRate(Hz)"'' property needs to be set to the correct value based on the camera exposure. 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.+The scanner laser beam should sweep through a single circle for each camera exposure period in milliseconds.
  
-The expression ''(1 / Camera Exposure) * 1000'' computes the correct ''"FastCirclesRate(Hz)"''.+Convert from milliseconds to hertz, the expression ''(1 / Camera Exposure) * 1000'' computes the correct ''"FastCirclesRate(Hz)"''.
  
-For example, if we want an exposure period of 20 milliseconds we compute 50 Hz because one second (1000ms/50hz) = 20ms.+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. 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)''. 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 ====
Line 139: 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 185: Line 212:
 **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. **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 207: 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. \\
Address: 29391 W Enid Rd. Eugene, OR 97402, USA | Phone: +1 (541) 461-8181
ringtirf.1706232045.txt.gz · Last modified: by brandon