ScanImage 2016 : Upgrade ScanImage 4 to SI5

ScanImage 4.x users can upgrade to SI5 using their existing scanner hardware and much of their electronics hardware 

To upgrade, the core SI5 Acquisition & Control Hardware must still be purchased separately 

 Steps to integrate a Thorlabs ECU1 or ECU2 (BScope 2) into a ScanImage 2016 system:

Wire the Thor ECU and ScanImage 2016 system

Use the image below as a guide. Items in black apply to both ECU1 and ECU2/BScope 2 while items in red apply only to the ECU2/BScope 2. 

  • Loop the ECU's line clock output terminal back to the ECU's line clock input terminal
  • Connect the Thor ECU to the scanner system
    • For ECU1, connect the single DVI connector to the resonant/galvo scanner assembly
    • For ECU2/BScope 2, connect all cables for PMT and scanner controls. There will be a 25 pin D-sub for each of the two parallel scan paths and two round cables for each PMT
  • If using a BScope 2, connect the MCM5000 controller. For each stage axis (X, Y, fine Z, coarse Z, rotation) there will be two D-sub cables, one for the motor and one for the encoder. There will also be three round mirror control cables
  • Connect the 68pin DAQ connector to the scanner control DAQ board of the ScanImage 2016 system
  • Connect the ECU's USB cable to the ScanImage 2016 PC. Windows will automatically download the drivers (requires an Internet connection) and register a USB serial port.
  • If using a BScope 2, also connect the USB cable to the MCM5000 controller. An unknown device should appear in the device manager.
    • Use device manager to update the device driver and choose the option to manually select driver location.
    • Locate the BScope_ControlV3 driver package from Thorlabs.
    • After installing, a second USB serial port should appear in the device manager.

       

 

Start ScanImage

Start ScanImage 2016 and select the option to create a new machine data file.

Configure ScanImage

The ScanImage Machine Configuration Editor will be started. Beginning with the General ScanImage Settings section, enter settings information appropriately.  
As sections are configured, modify them appropriately then press Next. When the Additional Components section is reached, you can press Finish or Finish and Run ScanImage to save configured information to the given machine data file.
Machine configuration can be updated at a later time by selecting the Machine Configuration... option on the File Menu on the Main Controls panel.

Integrate ThorLabs ECU and/or BScope 2 into ScanImage

To configure ThorLabs ECU and/or BScope 2, they must first be added within the ScanImage Machine Configuration Editor.

In the General ScanImage Settings section, add "Thorlabs ECU 1" and/or "Thorlabs B-Scope 2" to the Additional Components and PlugIns table, depending on your hardware.

The ScanImage Machine Configuration Editor will add settings sections, accordingl
A  Thorlabs ECU Scanner Settings section is added if "Thorlabs ECU 1" is selected as an additional component; and a ThorLabs BScope2 Setup section is added if "Thorlabs B-Scope 2" is selected as an additional component.

 

Configure Thorlabs ECU Scanner

Select the ThorLabs ECU Scanner section In the ScanImage Machine Configuration Editor.

 

Select the resonant scanning system you defined in the General ScanImage Settings section. Only scanners that have a "Resonant" Scanner Type are available in the Scanner Name dropdown list.

Recap:

 

Select the ECU COM Port of USB to serial adapter that installs when USB cord was plugged in. Use the device manager to determine this.

 

Icon

The Digital I/O device where triggers are wired is configured in the Resonant Scanning system section.

Since the scanner control DAQ board is wired directly to the Thorlabs ECU, a separate board must be used. This can be found in NI MAX. (ex: 'PXI1Slot3').

 

Configure Thorlabs B-Scope 2

Select the ThorLabs BScope2 Setup section In the ScanImage Machine Configuration Editor. 


 


Select the resonant scanning system you defined in the General ScanImage Settings section. Only scanners that have a "Resonant" Scanner Type are available in the Scanner Name dropdown list.

Recap:

 

Select the appropriate COM Ports for ECU, Galvo-Galvo Flipper mirror, Resonant-Galvo Flipper mirror, and Camera PMT Flipper mirror.

 

Icon
Select the ECU COM Port of USB to serial adapter that installs when USB cord was plugged in. Use the device manager to determine this.

 

See ThorLabs BScope2 Settings for additional setup information.

 

Icon

The FlexRIO Device is configured in the Resonant Scanning system settings section.

The available selections in the  Signal Acquisition DAQ dropdown list are obtained from configured devices in NI MAX.

 

Configure Resonant Scanning System

Select the Scanner Settings section for the defined Resonant scanning system, In the ScanImage Machine Configuration Editor. The defined scanning system will appear in the section name.

Enter the additional Resonant and Galvo mirror configuration.

 

Resonant Mirror settings

Select the name of the DAQ device where Thorlabs ECU is plugged in (found in NI MAX. (ex: 'PXI1Slot3')) in the Zoom Control DAQ.

Defaults are provided by the system. Change default entries as needed.

 

Galvo Mirror settings

Defaults are provided by the system. Change default entries as needed.

 

 

Legacy FPGA digital trigger support

Since the Thorlabs ECU plugs directly into the 68 pin connector of the scanner control DAQ board, the pins for other trigger terminals are not accessible for use. Instead, the trigger terminals must be accessed from the breakout of another DAQ board inserted in the same PXI chassis. Some ScanImage 4 systems, however, do not have a second DAQ board in the PXI chassis. To work around this, ScanImage 5 includes legacy support for digital triggers wired to an SCB-19 connector block attached directly to the FlexRIO FPGA. To configure your system for this setup follow the directions below. This strategy is not recommended for new ScanImage 5 setups, as it may be deprecated in the future.

  1. Connect SCB-19 connector block to the FlexRIO FPGA. Wire the required trigger signals from the appropriate terminals.

    Signal
    Description
    FPGA Terminal
    Beam ClockA TTL pulse generated on each line that controls when waveforms driving the Pockels cells begin.

    DIO1.0

    Frame Clock

    A TTL pulse generated at the start of each frame.

    DIO1.1

    Acq Trigger

    A TTL pulse generated when an acquisition starts. Useful for responding to software-triggered acquisitions.

    DIO1.2
    ShutterA TTL level that opens/closes an external shutter in the beam's path

    DIO1.3

                               

  2. Configure machine data file to route digital triggers from FPGA terminal block. Under the %% ScanImage section, change digitalIODeviceName to the RIO device name of your FlexRIO FPGA. This name can be found in MAX

    %% ScanImage
    ...
    digitalIODeviceName = 'RIO0'; % String: Device name of the DAQ board or FlexRIO FPGA that is used for digital inputs/outputs (triggers/clocks/shutters etc).

 

Attachments:

DiagramThorECU.png (image/png)
@ThorECU.zip (application/zip)
SI4 Upgrade Steps.pdf (application/pdf)