New microscope app
Required install ScopeFoundry
After installation, use anaconda prompt and navigate to where you want or have the source code for your setup and start ScopeFoundry.tools:
$ cd "to/your_project_folder"
$ conda activate scopefoundry
$ python -m ScopeFoundry.tools
Go to the new app
and press new app
. This copied the scope foundry example files to your project folder. In your anaconda(3) prompt run:
$ python example_slowscan_app.py
you should see:
Folder structure and take home messages
Now is a good time to learn the bare minimum of ScopeFoundry. On the left panel you see a 2 lists.
Hardware: are made of
HardwareComponent
who job it is to establish a connection to your hardware, readout and set values.Measurements: are made of
Measurement
classes that define the procedures of aquiring and saving data. They can have graphical user interfaces shown on the right. Can you start the example_2d_scan?
Note that you can expand the the item in either list to expose settings
that can be linked to the state of the hardware and parameterize you measurements respectively.
The folder structure should be of this form:
├── your_project_folder
├── ScopeFoundryHW
├── company1_model1
├── company1_model1_hw.py
├── company1_model1_dev.py
├── company1_model1_test_app.py
├── Licence
├── README.md
**
**
├── fancy_app.py
├── your_measurement_1.py
├── **
# after databrowser tutorial
├── viewers.py
├── images.py
├── fancy_data_browser.py
In particular the folder contains:
- A subfolder
ScopeFoundryHW
containing hardware control code. There must be at least a file, typically ending with_hw.py
, that contains a subclass of typeHardwareComponent
. - measurement files containing
Measurement
subclasses. - The actual app file where
Measurement
undHardwareComponent
are added to the main app. That is the file that gets run.
Congratulations, you have created your first microscope and saw the 3 most prutent high level concepts. HardwareComponent
and Measurement
can each have settings
.
Next Steps
Now that you have interacted with ScopeFoundry and built a microscope app with pre-built components, you probably would like to build a system that allows you to do real scientific experiements. To do this have a look at tutorials on how to build
- a custom Hardware Component
- a custom Measurement
or make a quick detour to setup IDE