An interface designed to make a scientists job easier by providing a simple, yet effective way of setting up two USB3 BlackFly S cameras and starting their data collection from a Labjack U3-LV.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Run in a windows 10 environment using Anaconda 4.7.5 and python 3.7.3
-
Spinnaker SDK
- Included in Additional docs
-
LabJackPython
- Included in Additional docs
-
Python 3
-
Anaconda
-
Open the Anaconda prompt
-
Change directories:
cd (File path where repo was cloned or downloaded)\UI-lab-capture\Additional docs\Environments
For DONALDSON LAB:
cd Documents\UI-lab-capture\Additional Docs\Environments
- Create the Anaconda Environment:
# IMPORTANT: Replace environmentName with the name you want for the environment
conda env create -f LabCaptureEnv.yml -n environmentName
- Activate the environment:
# IMPORTANT: Replace environmentName with the name from the last step
conda activate environmentName
- Change directories:
cd ..\LabJackPython-2.0.0\LabJackPython-2.0.0
- Run the setup script
python setup.py install
- Return to additional docs:
cd ..\..
- Change directories:
# NOTE: For my env, version cp37-cp37m was used
cd Latest Python Spinnaker\Latest Python Spinnaker\spinnaker_python-1.23.0.27-cpxx-cpxxm-win_amd64
- Install PySpin to your associated python version:
python -m pip install spinnaker_python-1.23.0.27-cpxx-cpxxm-win_amd64.whl
- Return to main directory UI-lab-capture:
cd ..\..\..\..
Once back to the main diretory, type
cd Scripts
Then, to launch application type
python Master.py
The settings window will appear. The following explains each entry in the window.
Working Direcotry - EDITABLE Takes desired file path where experiment files will be saved.
ex. "C://Users/Protter/Documents/UI-lab-capture/Experiments/Experiment_1_60fps"
Base File Name - EDITABLE Takes desired file name for the data file being outputed to by the GUI
ex. "Labjack_data"
Active Directory - READ-ONLY Displays where the data output file will be saved. Used as a way to verify that the infomation inputed looks correct
Primary Camera Serial Number - EDITABLE Takes the serial number for the 'primary' Blackfly S Camera
Hit Submit once all of the entries have been filled in. The settings window will close and the main GUI will display. The following explains each entry in the window.
Labjack Scan Rate - EDITABLE Determines the scan frequency for the Labjack U3-LV
BlackFly FPS - READ-ONLY Determines the FPS for the video recording
Once you are ready to start the experiment, hit the start button towards the bottom of the window.
To stop the experiment, hit the stop button towards the bottom of the window. This will redirect you to the settings window. Here you can either start another experiment by repeating these steps or quit to desktop by closing the settings window.
Additional notes about how to deploy this on a live system
Python 3.7.3
conda 4.7.5
- Anaconda - Platform
- Visual Studio - IDE
- Python - Code Language
- PySpin - API for USB3 Blackfly S Camera
- Labjack - API for Labjack U3-LV
We use species for versioning. For the versions available, see the tags on this repository.
- Chase Dudas - GUI/Scripts - Personal GitHub
- Dave Protter - Torubleshooting - Git
This project is not licensed
- Big thanks to Kevin Chen @ FLIR for helping troubleshoot issues with the Blackfly S cameras
- David Protter w/ Donaldson Lab
- It’ll be running like a toyota carolla, FOREVER and basically flawlessly