Frontend user code (object oriented - TMFE): Difference between revisions

From MidasWiki
Jump to navigation Jump to search
(Created page with "This page will document using object-oriented C++ to create a midas Frontend. For the classic C-style frontend see Frontend_user_code. For python frontends see Python.")
 
No edit summary
Line 1: Line 1:
{{Pagelinks}}
= Links =
<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
* [[Frontend Operation]]
* [[Frontend Application]]
* [[Equipment List Parameters]]
* [[Equipment Flags]]
* [[Event Notification (Hot-Link)]]
</div>
= Introduction =
This page will document using object-oriented C++ to create a midas Frontend. For the classic C-style frontend see [[Frontend_user_code]]. For python frontends see [[Python]].
This page will document using object-oriented C++ to create a midas Frontend. For the classic C-style frontend see [[Frontend_user_code]]. For python frontends see [[Python]].
Regardless of the framework you use, all midas frontends follow the same concept of "equipment" (which can be periodic or polled) that produce data in midas banks that can eventually get logged to file or the midas history system. If you don't need to produce data, you can write midas clients without using one of the frontend frameworks.
= Examples =
Examples of TMFE-based frontends can be found at
* <code>$MIDASSYS/progs/fetest.cxx</code>
* <code>$MIDASSYS/progs/tmfe_example.cxx</code> - minimal frontend with a periodic equipment
* <code>$MIDASSYS/progs/tmfe_example_frontend.cxx</code> - the equivalent of <code>$MIDASSYS/examples/experiment/frontend.cxx</code>
* <code>$MIDASSYS/progs/tmfe_example_indexed.cxx</code> - example of a frontend that handles the <code>-i</code> argument. If you pass <code>-i 3</code> on the command line, the equipment will appear as <code>example_03</code> and write data to <code>BUF03</code>
* <code>$MIDASSYS/progs/tmfe_example_multithreaded.cxx</code>
* <code>$MIDASSYS/progs/tmfe_example_everything.cxx</code>

Revision as of 12:00, 31 March 2023


Links

Introduction

This page will document using object-oriented C++ to create a midas Frontend. For the classic C-style frontend see Frontend_user_code. For python frontends see Python.

Regardless of the framework you use, all midas frontends follow the same concept of "equipment" (which can be periodic or polled) that produce data in midas banks that can eventually get logged to file or the midas history system. If you don't need to produce data, you can write midas clients without using one of the frontend frameworks.

Examples

Examples of TMFE-based frontends can be found at

  • $MIDASSYS/progs/fetest.cxx
  • $MIDASSYS/progs/tmfe_example.cxx - minimal frontend with a periodic equipment
  • $MIDASSYS/progs/tmfe_example_frontend.cxx - the equivalent of $MIDASSYS/examples/experiment/frontend.cxx
  • $MIDASSYS/progs/tmfe_example_indexed.cxx - example of a frontend that handles the -i argument. If you pass -i 3 on the command line, the equipment will appear as example_03 and write data to BUF03
  • $MIDASSYS/progs/tmfe_example_multithreaded.cxx
  • $MIDASSYS/progs/tmfe_example_everything.cxx