GithubHelp home page GithubHelp logo

michardy / muon-ui Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 993 KB

In browser data visualization for QNet DAQ cards. Uses daq_mirror.

Makefile 8.40% HTML 5.67% C++ 63.70% JavaScript 19.51% CSS 2.72%

muon-ui's Introduction

muon-ui

In browser data visualization for QNet DAQ cards. Uses daq_mirror.

Installing

Clone this repository

git clone https://github.com/michardy/muon-ui.git

Use your package manger to install:

  • gcc
  • make
  • uglifyjs (Specifically the uglify-es variant. Things blow up otherwise dues to use of ES6)
  • uglifycss

Install emscripten:

curl -O https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz
tar -xzf emsdk-portable.tar.gz
source emsdk_portable/emsdk_env.sh
emsdk update
emsdk install latest
emsdk activate latest

Building

Use make update to build the dataprocessing program and copy it to the dev folder.
Use make release to build the dataprocessing program, copy it to the release folder, and minify and copy the dev folder to release.

Warning

This is a site with a makefile. You have been warned.

muon-ui's People

Contributors

michardy avatar

Watchers

James Cloos avatar  avatar  avatar

muon-ui's Issues

Use c++ bitfields to read data rather than masks

The use of masks can be hard to understand. For example dataprocessing/dataprocessing.cpp 112-132:

void risingedgecount::set(std::string hex) {
	unsigned long buffer = std::stoul(hex,nullptr,16);
	tmc = buffer & 31; // first 5 bits
	re = buffer & 32; // bit 5
	reserved = buffer & 64; // bit 6
	event_new = buffer & 128; // bit 7
}
void fallingedgecount::set(std::string hex) {
	unsigned long buffer = std::stoul(hex,nullptr,16);
	tmc = buffer & 31; // first 5 bits
	re = buffer & 32; // bit 5
}
void daqstatus::set(std::string hex) {
	int buffer = std::stoi (hex,nullptr,16);
	ppsc = buffer & 1; // bit 0
	trig_interrrupt = buffer & 2; // bit 1
	gps_corrupt = buffer & 4; // bit 2
	cpld_pps_mismatch = buffer & 8; // bit 3
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.