Code Monkey home page Code Monkey logo

libdaqinterface's Introduction

Stand alone DAQInterface library

This code provides an interface library to the SQL databases, monitoring and slow control systems.

Instalation

To get dependencies (boost and ZMQ):

  ./GetDepenencies.sh

Or if you already have them you can change the Makefile paths to point to your local copt of ZMQ & Boost

To compile run:

  make

This will produce:

1) The DAQ Interface shared object library (lib/LibDAQInterface.so) that can be used in your stand alone code:
2) An Example program demonstraiting the interfaces usage (see Example.cpp)
3) A command line remote control package for sending slow control commands (RemoteControl)
4) A Windows and MacOS interface translation program (Win_Mac_translation)

Usage/Execution

To use the DAQ library in your own standalone program include the header in your code

#include <DAQInterface.h>

and compile with g++ yourprogram.cpp -o yourprogram -I /include -L /lib -lDAQInterface

For detials of the interface see inlcude/DAQInterface.h and for an example please read Example.cpp

To execute add /lib to your LD_LIBRARY_PATH or

source Setup.sh

Example

To run the example:

source Setup.sh
./Example

Note: If your using Windows or MacOS and web server is running in a container on the same computer as your stand alone application, which is running on the host OS. Then due to the limitations of the networking on docker desktop on those platforms, you will need to first run the Win_Mac_translation application in the background for the features to work

./Win_Mac_translation &

libdaqinterface's People

Contributors

brichards64 avatar marc1uk avatar

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.