Skip to content

Stream data from a measurement device to a GLMakie window.

License

Notifications You must be signed in to change notification settings

garrekstemo/DataViewer.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataViewer.jl

A very simple proof-of-concept GUI that automatically displays new data added to a folder using GLMakie. The intended use case is an experimental device that takes measurements and saves the data to a file. This program will watch a folder using FileWatching (part of the standard Julia library) and update Observables for the data and the menu items. The menu is used to select previously saved data.

Another package of mine, LVM.jl, is a dependency. This reads LabView files (and also .csv files) particular to my experiment.

Hopefully this is a nice example for others to build their own GUIs for experimental data collection.

Reproduce this demo with the following:

julia> ]
pkg> activate scratch
julia> using DataViewer
julia> livepanel("testdata/output", load_test_data, "csv")

Then drage csv files from the folder testdata/device to testdata/output. The first argument is the file to watch. The second argument is the file loading function. The third argument is the file extension to look for in the watch directory.

image