Atacama Large Millimeter Array ACS Training Notification Channel

  • Slides: 11
Download presentation
Atacama Large Millimeter Array ACS Training Notification Channel - C++ API

Atacama Large Millimeter Array ACS Training Notification Channel - C++ API

Getting Started At the console open up: ACS/LGPL/Common. Software/acscourse/ws/include/acscourse. Mount 5 Impl. h and:

Getting Started At the console open up: ACS/LGPL/Common. Software/acscourse/ws/include/acscourse. Mount 5 Impl. h and: ACS/LGPL/Common. Software/acscourse/ws/src/acscourse. Mount 5 Impl. cpp Garching, February 2004 ACS Training 2

What files need to be created? • • An IDL file containing the definition

What files need to be created? • • An IDL file containing the definition of a struct the NC will send/receive. If using simple CORBA types, this is not necessary. A header/implementation each for the derived supplier and consumer. This is not necessary for the Simple. Supplier or Simple. Consumer classes. Garching, February 2004 ACS Training 3

Example(s) Please look at: acscourse/ws/idl/acscourse. Mount. idl acscourse/ws/include/acscourse. Mount 5 Impl. h acscourse/ws/src/acscourse. Mount

Example(s) Please look at: acscourse/ws/idl/acscourse. Mount. idl acscourse/ws/include/acscourse. Mount 5 Impl. h acscourse/ws/src/acscourse. Mount 5 Impl. cpp Garching, February 2004 ACS Training 4

What Methods are Available in the Consumer and Supplier Classes? www. eso. org/~almamgr/Alma. Acs/Online.

What Methods are Available in the Consumer and Supplier Classes? www. eso. org/~almamgr/Alma. Acs/Online. Docs/ACS_docs/cpp/class. Supplier. html www. eso. org/~almamgr/Alma. Acs/Online. Docs/ACS_docs/cpp/class. Consumer. html Garching, February 2004 ACS Training 5

Makefile Targets The only special thing that must be done is linking in the

Makefile Targets The only special thing that must be done is linking in the acsnc library. Done quite simply actually: xxx_LIBS = acsnc where xxx_ is replaced by the name of the library or executable you’re trying to create. Garching, February 2004 ACS Training 6

Learn From Others’ Mistakes • If it at all possible, do not thread Suppliers

Learn From Others’ Mistakes • If it at all possible, do not thread Suppliers or Consumers. If this is done, there may be be problems restarting containers. Garching, February 2004 ACS Training 7

Questions about the C++ event channel API? ? ? Garching, February 2004 ACS Training

Questions about the C++ event channel API? ? ? Garching, February 2004 ACS Training 8

Garching, February 2004 ACS Training 9

Garching, February 2004 ACS Training 9

Demo Garching, February 2004 ACS Training 10

Demo Garching, February 2004 ACS Training 10

Advanced Concepts: Adding Suppliers/Consumers to your Component Garching, February 2004 ACS Training 11

Advanced Concepts: Adding Suppliers/Consumers to your Component Garching, February 2004 ACS Training 11