ConOpSys V2970  P004.07
ANVILEX control operating system
Public Member Functions | Public Attributes | Private Attributes | List of all members
TFunction_Block_RMS_Moving_Average_Filter_128_3C Class Reference

Class declaration description. More...

#include <Function_Block_RMS_Moving_Average_Filter.h>

Inheritance diagram for TFunction_Block_RMS_Moving_Average_Filter_128_3C:
Inheritance graph
Collaboration diagram for TFunction_Block_RMS_Moving_Average_Filter_128_3C:
Collaboration graph

Public Member Functions

 TFunction_Block_RMS_Moving_Average_Filter_128_3C ()
 Class constructor method. More...
 
virtual ~TFunction_Block_RMS_Moving_Average_Filter_128_3C ()
 Class destructor method. More...
 
virtual VOID Init ()
 Function block initialisation method. More...
 
virtual VOID Execute ()
 Function block execution method. More...
 
virtual VOID Send_Information (TProtocol_Base *object_Protocol)
 Send information about Function block over communication link protocol. More...
 
- Public Member Functions inherited from TFunction_Block_Base
 TFunction_Block_Base (U32 u32_Function_ID)
 Class constructor method. More...
 
virtual ~TFunction_Block_Base ()
 Class destructor method. More...
 
VOID Connect ()
 Function block connect method. More...
 
VOID Init ()
 Function block initialisation method. More...
 
virtual VOID Done ()
 Function block finalisation method. More...
 
virtual VOID Update ()
 Update parameters at runtime method. More...
 
virtual VOID Trip ()
 Function block trip method. More...
 
U32 Get_Function_Block_ID ()
 Get function block dentifier. More...
 
VOID Set_Initialisation_Error ()
 Set function block initialisation error. More...
 
BOOL Is_Initialisation_Error ()
 Return function block initialisation error status. More...
 
VOID Append_Connected_Status (BOOL *bool_Connected_Status)
 Append interconnection status of the function block. More...
 
BOOL Is_Connected ()
 Returns status of the function block interconnection. More...
 
BOOL Is_Initialised ()
 Returns status of the function block interconnection. More...
 
BOOL Get_Input_Connector (U32 u32_Connector_Index, TBlock_Input_Connector **object_Input_Connector)
 Get pointer to the input connector. More...
 
BOOL Get_Output_Connector (U32 u32_Connector_Index, TBlock_Output_Connector **object_Output_Connector)
 Get pointer to the output connector. More...
 
TFunction_Block_Status Get_Status ()
 Get function block status method. More...
 
__fastcall TBlock_Template (TComponent *Owner, TList *Storage)
 
__fastcall ~TBlock_Template ()
 
void __fastcall CreateBlock ()
 
virtual void __fastcall Paint ()
 
virtual bool __fastcall PropertiesDialog ()
 
virtual void __fastcall SaveToProjectFile (TMemIniFile *ProjectFile, AnsiString ParentSection)
 
virtual void __fastcall LoadFromProjectFile (TMemIniFile *ProjectFile, AnsiString ParentSection)
 
virtual void __fastcall SwapBlocks ()
 
virtual void __fastcall RepaintAllBlocks ()
 
VOID __fastcall Load_Block_From_List (TStringList *object_File_Source_CPP, TStringList *object_File_Source_H)
 
VOID __fastcall Get_SQL_Queries (TStringList *object_SQL_Queries)
 

Public Attributes

TBlock_Input_Connector object_f32_Sample_Time
 Function block sample time in seconds. More...
 
TBlock_Input_Connector object_f32_Averaging_Time
 Averaging time in seconds. More...
 
TBlock_Input_Connector object_f32_Input_1
 Moving avarage filter input signal of channel 1. More...
 
TBlock_Input_Connector object_f32_Input_2
 Moving avarage filter input signal of channel 2. More...
 
TBlock_Input_Connector object_f32_Input_3
 Moving avarage filter input signal of channel 3. More...
 
TBlock_Output_Connector object_f32_Output_1
 Moving average filter block output of channel 1. More...
 
TBlock_Output_Connector object_f32_Output_2
 Moving average filter block output of channel 2. More...
 
TBlock_Output_Connector object_f32_Output_3
 Moving average filter block output of channel 3. More...
 
- Public Attributes inherited from TFunction_Block_Base
TListStorageOfBlocks = (TList*)NULL
 
int BlockID
 
int InputConnectorsCount
 
int OutputConnectorsCount
 
TListStorageOfInputConnectors
 
TListStorageOfOutputConnectors
 
TCore_Template * Core
 
TFooter_Template * Footer
 
TParameters_Template * Parameters
 
bool AutoSize
 
Graphics::TBitmap * Icon
 
__property TNotifyEvent OnInputConnectorSelected = { read = FOnInputConnectorSelected, write = FOnInputConnectorSelected }
 
__property TNotifyEvent OnOutputConnectorSelected = { read = FOnOutputConnectorSelected, write = FOnOutputConnectorSelected }
 
__property TNotifyEvent OnCoreSelected = { read = FOnCoreSelected, write = FOnCoreSelected }
 
__property TNotifyEvent OnModified = { read = FModified, write = FModified }
 
__property TNotifyEvent OnNeedToUpdate = { read = FNeedToUpdate, write = FNeedToUpdate }
 
__property TResolveConnectorAddressEvent OnResolveConnectorAddress = { read = FOnResolveConnectorAddress, write = FOnResolveConnectorAddress }
 
__property AnsiString Label = { read = FLabel, write = FLabel }
 
__property BOOL Border = { read = FBorder, write = FBorder, default = true }
 
__property BOOL Selected = { read = FSelected, write = SetSelectedFlag, default = false }
 
__property BOOL Flipped = { read = FFlipped, write = SetFlippedFlag, default = false }
 

Private Attributes

F32 f32_Sampling_Ratio = (F32)1.0f
 Sampling ratio. More...
 
U32 u32_Averaging_Buffer_Size = (U32)1
 Requered averaging buffer size in samples. More...
 
F32 f32_1_Div_Averaging_Buffer_Size = (F32)1.0f
 Inversed value of requered averaging buffer size. More...
 
U32 u32_Buffer_Index = (U32)0
 
F32 f32_Buffer_1 [128] = { (F32)0.0f }
 Data buffer of the channel 1. More...
 
F32 f32_Buffer_2 [128] = { (F32)0.0f }
 Data buffer of the channel 2. More...
 
F32 f32_Buffer_3 [128] = { (F32)0.0f }
 Data buffer of the channel 3. More...
 

Additional Inherited Members

- Protected Member Functions inherited from TFunction_Block_Base
VOID Update_Connected_Status (BOOL bool_New_Connected_Status)
 Updates function block interconnection status. More...
 
VOID Create_Event (U32 u32_Event_ID)
 Create event method. More...
 
void __fastcall SetSelectedFlag (bool Value)
 
void __fastcall SetFlippedFlag (bool Value)
 
virtual void __fastcall SetNamesOfConnectors ()
 
void __fastcall CorePaint (TObject *Sender)
 
- Protected Attributes inherited from TFunction_Block_Base
TNotifyEvent FModified
 
TNotifyEvent FNeedToUpdate
 
TNotifyEvent FOnInputConnectorSelected
 
TNotifyEvent FOnOutputConnectorSelected
 
TNotifyEvent FOnCoreSelected
 
TResolveConnectorAddressEvent FOnResolveConnectorAddress
 
AnsiString FLabel = ""
 Function block label of the core string. More...
 
BOOL FBorder = (BOOL)true
 Function block border status. More...
 
BOOL FSelected = (BOOL)false
 Function block seleted status. More...
 
BOOL FFlipped = (BOOL)false
 Function block flipped status. More...
 
BOOL LockedMode = (BOOL)false
 
BOOL DobbleClicked = (BOOL)false
 
U32 u32_Locked_Position_X = (U32)0
 
U32 u32_Locked_Position_Y = (U32)0
 

Detailed Description

Class declaration description.

COPYRIGHT(C) 2018-2019 ANVILEX GmbH

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of ANVILEX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

128 points, 3 channel, root mean squere (RMS) moving average filter class

Constructor & Destructor Documentation

◆ TFunction_Block_RMS_Moving_Average_Filter_128_3C()

TFunction_Block_RMS_Moving_Average_Filter_128_3C::TFunction_Block_RMS_Moving_Average_Filter_128_3C ( )

Class constructor method.

Object conctructor.


Note
None
Override
Not allowed
Attention
Don't call this method directly.
Returns
Pointer to the object
Note
None

Object conctructor

Returns
Pointer to the object
Note
None

Object conctructor

Returns
Pointer to the object
Note
None

Object conctructor

Returns
Pointer to the object
Note
None

Object conctructor

Returns
Pointer to the object
Note
None
Todo:
ANVILEX KM: Remove local variables initialisation from constructor

References f32_1_Div_Averaging_Buffer_Size, f32_Buffer_1, f32_Buffer_2, f32_Buffer_3, object_f32_Averaging_Time, object_f32_Input_1, object_f32_Input_2, object_f32_Input_3, object_f32_Output_1, object_f32_Output_2, object_f32_Output_3, object_f32_Sample_Time, TBlock_Connector::Set_Type_F32(), TBlock_Input_Connector::Set_Type_F32(), u32_Averaging_Buffer_Size, and u32_Buffer_Index.

Here is the call graph for this function:

◆ ~TFunction_Block_RMS_Moving_Average_Filter_128_3C()

TFunction_Block_RMS_Moving_Average_Filter_128_3C::~TFunction_Block_RMS_Moving_Average_Filter_128_3C ( )
virtual

Class destructor method.


Note
None
Override
Not allowed
Attention
Don't call this method directly.

Member Function Documentation

◆ Execute()

VOID TFunction_Block_RMS_Moving_Average_Filter_128_3C::Execute ( )
virtual

◆ Init()

VOID TFunction_Block_RMS_Moving_Average_Filter_128_3C::Init ( )
virtual

◆ Send_Information()

VOID TFunction_Block_RMS_Moving_Average_Filter_128_3C::Send_Information ( TProtocol_Base object_Protocol)
virtual

Send information about Function block over communication link protocol.


Note
This method sends information about Function block over specified communication link protocol.
Parameters
[in]TProtocol_Base*object_Protocol - Pointer to the communication link protocol
Returns
None
Override
Not allowed
Attention
None

Reimplemented from TFunction_Block_Base.

References f32_1_Div_Averaging_Buffer_Size, f32_Sampling_Ratio, object_f32_Averaging_Time, object_f32_Sample_Time, TProtocol_Base::Transmit_Connector_Value_As_Decimal(), TProtocol_Base::Transmit_F32_Value_As_Decimal(), TProtocol_Base::Transmit_String(), TProtocol_Base::Transmit_U32_Value_As_Decimal(), and u32_Averaging_Buffer_Size.

Here is the call graph for this function:

Member Data Documentation

◆ f32_1_Div_Averaging_Buffer_Size

F32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::f32_1_Div_Averaging_Buffer_Size = (F32)1.0f
private

Inversed value of requered averaging buffer size.

Referenced by Execute(), Init(), Send_Information(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ f32_Buffer_1

F32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::f32_Buffer_1[128] = { (F32)0.0f }
private

Data buffer of the channel 1.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ f32_Buffer_2

F32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::f32_Buffer_2[128] = { (F32)0.0f }
private

Data buffer of the channel 2.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ f32_Buffer_3

F32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::f32_Buffer_3[128] = { (F32)0.0f }
private

Data buffer of the channel 3.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ f32_Sampling_Ratio

F32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::f32_Sampling_Ratio = (F32)1.0f
private

Sampling ratio.

Referenced by Init(), and Send_Information().

◆ object_f32_Averaging_Time

TBlock_Input_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Averaging_Time

Averaging time in seconds.

Referenced by Init(), Send_Information(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Input_1

TBlock_Input_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Input_1

Moving avarage filter input signal of channel 1.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Input_2

TBlock_Input_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Input_2

Moving avarage filter input signal of channel 2.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Input_3

TBlock_Input_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Input_3

Moving avarage filter input signal of channel 3.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Output_1

TBlock_Output_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Output_1

Moving average filter block output of channel 1.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Output_2

TBlock_Output_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Output_2

Moving average filter block output of channel 2.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Output_3

TBlock_Output_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Output_3

Moving average filter block output of channel 3.

Referenced by Execute(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ object_f32_Sample_Time

TBlock_Input_Connector TFunction_Block_RMS_Moving_Average_Filter_128_3C::object_f32_Sample_Time

Function block sample time in seconds.

Referenced by Init(), Send_Information(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ u32_Averaging_Buffer_Size

U32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::u32_Averaging_Buffer_Size = (U32)1
private

Requered averaging buffer size in samples.

Referenced by Execute(), Init(), Send_Information(), and TFunction_Block_RMS_Moving_Average_Filter_128_3C().

◆ u32_Buffer_Index

U32 TFunction_Block_RMS_Moving_Average_Filter_128_3C::u32_Buffer_Index = (U32)0
private

The documentation for this class was generated from the following files: