Virtual Optical Serial Analyser (OSA) is a basic text command interface of legacy laboratory equipment. It is created using React and Flask framework. It provides basic controls to retrieve an OSA trace within specified limits and display the result on a graph.
Clone this repository :
git clone https://github.com/tulianish/VirtualOSA
Make sure you have these installed :
- NodeJS - v12 or above (recommended)
- npm - v3 or above (recommended)
- Python - v3 or above (recommended)
- pip - v20 or above (recommended)
- Navigate inside VirtualOSA/ directory to install all react dependencies
npm install
- Navigate inside VirtualOSA/ directory
npm start
React would start serving at http://localhost:3000/
- Navigate inside VirtualOSA/flask_server directory
pip install -r requirements.txt
- Navigate inside VirtualOSA/flask_server directory
export FLASK_APP=server.py
flask run
Flask would start serving at http://localhost:5000/api/cmd
It provides a continous feedback on the graph plot for successive TRACE calls.
Afterwards, you have to execute the update script of the extension to create the required database structure:
Provides a scrollable text area with communication log between instrument & user which could prove useful for debugging hardware issues in the laboratory
Plots successive plot overlaying one over the other with random color tones suited for viewing persistently.
Caution: Plot persistence could cause the page to slow down. It is recommended not to use it beyond 3 plots.
A log that stores all the communication between the user and the system. It handles all the click and command based functions.
- ChartsJS
- chartjs-zoom-plugin
- Bootstrap
- nginx
- Gunicorn
- AWS EC2






