EPICS ARCHIVER V4
|
Sample Mechanism that performs a periodic 'get'. More...
#include <SampleMechanismGetEA3.h>
Public Member Functions | |
SampleMechanismGetEA3 (EngineConfig &config, ProcessVariableContext &ctx, ScanList &scan_list, const char *name, double period) | |
Constructor. | |
virtual | ~SampleMechanismGetEA3 () |
Destructor. | |
void | scan (const epicsTime &now) |
Invoked whenever a scan is due. More... | |
virtual std::string | getInfo (Guard &guard) |
virtual void | start (Guard &guard) |
Start the sample mechanism. More... | |
virtual void | stop (Guard &guard) |
Stop sampling. More... | |
virtual void | addToFUX (Guard &guard, FUX::Element *doc) |
Append this sample mechanism to a FUX document. More... | |
![]() | |
SampleMechanismEA3 (const EngineConfig &config, ProcessVariableContext &ctx, const char *name, double period, ProcessVariableListener *disable_filt_listener) | |
Constructor. | |
virtual | ~SampleMechanismEA3 () |
Destructor. | |
virtual unsigned long | write (Guard &guard, Index &index) |
Write current buffer to index. More... | |
virtual void | pvConnected (ProcessVariable &pv, const epicsTime &when) |
ProcessVariableStateListener. More... | |
virtual void | pvValue (ProcessVariable &pv, const RawValue::Data *data) |
ProcessVariableValueListener. More... | |
size_t | getSampleCount (Guard &guard) const |
![]() | |
SampleMechanism (const EngineConfig &config, ProcessVariableContext &ctx, const char *name, double period, ProcessVariableListener *disable_filt_listener) | |
Construct mechanism for given period. More... | |
void | pvDisconnected (ProcessVariable &pv, const epicsTime &when) |
ProcessVariableStateListener. More... | |
virtual OrderedMutex & | getMutex () |
virtual const std::string & | getName () const |
Gets the ProcessVariable name. More... | |
bool | isRunning (Guard &guard) |
ProcessVariable::State | getPVState () |
void | disable (const epicsTime &when) |
Temporarily disable sampling. More... | |
void | enable (const epicsTime &when) |
Re-enable sampling. More... | |
void | addStateListener (ProcessVariableStateListener *listener) |
Add a listener to the underlying PV. More... | |
void | removeStateListener (ProcessVariableStateListener *listener) |
Remove a listener from the underlying PV. More... | |
void | addValueListener (ProcessVariableValueListener *listener) |
Add a listener to the underlying PV. More... | |
void | removeValueListener (ProcessVariableValueListener *listener) |
Remove a listener from the underlying PV. More... | |
![]() | |
virtual | ~ProcessVariableStateListener () |
Constructor. | |
Sample Mechanism that performs a periodic 'get'.
New samples are stored. Samples that don't change are stored via a 'repeat count', up to a maximum repeat count specified in the EngineConfig.
The data flows as follows:
|
virtual |
Append this sample mechanism to a FUX document.
Reimplemented from SampleMechanism.
|
virtual |
Reimplemented from SampleMechanism.
|
virtual |
Invoked whenever a scan is due.
The passed 'now' is the deadline time that was used to decide if this item is due 'now', so it should be very close to the current time, and might be cheaper to use than asking for the exact current time.
Implements Scannable.
|
virtual |
|
virtual |
Stop sampling.
Base implementation stops the PV and adds a 'STOPPED (OFF)' event.
Reimplemented from SampleMechanism.