Zapit Optostim
  • Zapit Optostim: Introduction
    • Feature List
    • FAQ
  • Installation and Setup
    • Hardware setup
    • Software setup
    • Configuring Zapit
      • General settings
      • NI DAQ settings
      • Experiment settings
      • Scanner & Camera settings
      • Laser Power Calibration
      • Blanking settings
    • Staying up to date
  • Using the GUI
    • Introduction: Using the GUI
    • Scanner Calibration
    • Sample Calibration
    • StimConfig Editor
    • Generating stimulus patterns at the CLI
    • Advanced Usage
  • Running Experiments
    • Introduction: Running Experiments
    • MATLAB
      • Basic API Usage in MATLAB
      • Running an Experiment in MATLAB
    • Python
      • Connecting Python to Zapit
      • Basic Zapit API Use in Python
    • Remote Control and Other Programming Languages
  • Developer Notes
    • Project Structure
    • Conventions
    • Hints and Tips
Powered by GitBook
On this page
  1. Installation and Setup

Software setup

PreviousHardware setupNextConfiguring Zapit

Last updated 9 months ago

These instructions assume you have already assembled the hardware, wired the DAQ, aligned the laser, etc.

MATLAB

Zapit has been tested on MATLAB R2022a and R2022b and it should work on more recent versions also. It may work on earlier versions but this has not been tested. The latest version of MATLAB is recommended. You will need a PC with at least 16 GB of RAM.

MATLAB Toolboxes

You will need the following MATLAB ToolBoxes.

  • (used for calibrating power on non-linear lasers. Not needed for Obis)

  • (optional: use for TCP/IP comms)

DAQ Drivers

  • Install NI and ensure you have checked to install with .NET support enabled. Ideally install one of our tested versions: 19.0 to 21.8.

Camera Drivers

Zapit currently supports only Basler cameras (although in principle this can be extended to other cameras). You will need to:

  • If not done already, install . Choose the Developer option during installation and your connection type (probably USB). Plug in your camera into a USB3 port and confirm it is detected and runs using the software.

  • Install the . Either from that link or, better yet, via the accessible via Home > Add-Ons on the MATLAB ribbon.

Installing Zapit

Gather and install the above requirements then install Zapit in one of the following ways:

  • Via MATLAB: Go to the Apps ribbon in MATLAB and click on Get More Apps. Search for Zapit and add it to MATLAB. This is recommended.

You will need to configure Zapit before it can be started.

You will need to restart MATLAB after the camera driver has been installed. If you later encounter problems connecting to the camera in MATLAB, see .

Via your browser: Navigate to the . Download. Unpack in a reasonable place. Add the zapit directory (i.e. that which contains start_zapit.m) to your path. You need add only this directory, not it and all sub-directories.

Via Git: Clone in your favourite Git client. Add the zapit directory (i.e. that which contains start_zapit.m) to your path. You need add only this directory, not it and all sub-directories.

Image Processing Toolbox
Image Acquisition Toolbox
Curve Fitting Toolbox
Instrument Control Toolbox
DAQmx
Basler's Pylon
Camera Software Suite Windows
Image Acquisition Toolbox Support Package for GenICam Interface
Add-On Manager
Basler's instructions for the GenICam interface
Zapit File Exchange page
the repo