ADTF
Demo Time Trigger Plugin

Table of Contents

Demo Time Trigger

Plugin Information
Plugin Filenamedemo_time_triggered_filter.adtfplugin
Plugin Descriptiondemo_time_triggered_filter.plugindescription
Plugin NameDemo Time Trigger Plugin
LicenseADTF
Support Mailsupport@digitalwerk.net
Homepage URLsupport.digitalwerk.net
Plugin Versions
Plugin Version3.99.99
Plugin File Version1.0
adtf3.99.99
adtf::ucom3.1.0
Component Information
NameDemo Time Trigger
CIDdemo_time_trigger.filter.adtf.cid
DescriptionUse this filter to generate data whenever a defined Timer Runner triggers.
TypeFilter
Properties
NameValueTypeDescriptionSubproperties
data_generator_function/number_gen_type0tUInt32Chooses the generator used for calculating output data.Value List:
Counter = 0
Random = 1
Output Pins
NameStream TypeDescription
out adtf/plaintype Provides the generated data based on number_gen_type
out_array adtf/plaintype Provides the generated data array based on number_gen_type
nested_struct adtf/default Provides the generated data based on number_gen_type
nested_struct_array adtf/default Provides the generated data based on number_gen_type in a structure with arrays
Runner
NameActivation TypeData TriggeredData InputThread TriggeredThread CyclicTimer TriggeredTimer IntervalDescription
data_generator_function100011000000Runner to periodically trigger the function which generates the output data for all pins
Dynamic Pins
Dynamic Input Pinsfalse
Dynamic Output Pinsfalse
Dynamic Input Binding Pinsfalse
Dynamic Output Binding Pinsfalse
Output Pin Stream Types
Pin Nameout
Meta Type Nameadtf/plaintype
Stream Type Properties
NameValueTypeDescriptionSubproperties
array_size1tInt32
c-typeFLOAT32cString
md_definitions
<struct name="FLOAT32" alignment="1" version="1"><element name="value" arraysize="1" type="tFloat32"><deserialized alignment="1"/><serialized bytepos="0" byteorder="LE"/></element></struct>
cString
md_structFLOAT32cString
Pin Nameout_array
Meta Type Nameadtf/plaintype
Stream Type Properties
NameValueTypeDescriptionSubproperties
array_size10tInt32
c-typeINT64_ARRAYcString
md_definitions
<struct name="INT64_ARRAY" alignment="1" version="1">
<element name="value" arraysize="10" type="tInt64">
<deserialized alignment="1"/>
<serialized bytepos="0" byteorder="LE"/>
</element>
</struct>
cString
md_structINT64_ARRAYcString
Pin Namenested_struct
Meta Type Nameadtf/default
Stream Type Properties
NameValueTypeDescriptionSubproperties
md_data_serializedfalsetBool
md_definitions
<?xml version="1.0"?>
<ddl:ddl xmlns:ddl="ddl">
<header>
<language_version>4.01</language_version>
<author></author>
<date_creation></date_creation>
<date_change></date_change>
<description></description>
</header>
<units />
<datatypes>
<datatype name="tFloat32" size="32" description="Predefined DataType for tFloat32" arraysize="1" />
<datatype name="tFloat64" size="64" description="Predefined DataType for tFloat64" arraysize="1" />
<datatype name="tInt32" size="32" description="Predefined DataType for tInt32" arraysize="1" min="-2147483648" max="2147483647" />
<datatype name="tInt64" size="64" description="Predefined DataType for tInt64" arraysize="1" min="-9223372036854775808" max="9223372036854775807" />
<datatype name="tUInt16" size="16" description="Predefined DataType for tUInt16" arraysize="1" min="0" max="65535" />
<datatype name="tUInt32" size="32" description="Predefined DataType for tUInt32" arraysize="1" min="0" max="4294967295" />
<datatype name="tUInt8" size="8" description="Predefined DataType for tUInt8" arraysize="1" min="0" max="255" />
</datatypes>
<enums>
<enum name="eSimpleEnum" type="tUInt8">
<element name="eEnum_value_eight" value="8" />
<element name="eEnum_value_five" value="5" />
<element name="eEnum_value_four" value="4" />
<element name="eEnum_value_nine" value="9" />
<element name="eEnum_value_one" value="1" />
<element name="eEnum_value_seven" value="7" />
<element name="eEnum_value_six" value="6" />
<element name="eEnum_value_three" value="3" />
<element name="eEnum_value_two" value="2" />
<element name="eEnum_value_zero" value="0" />
</enum>
</enums>
<structs>
<struct name="tHeaderStruct" version="1" alignment="1" ddlversion="4.01">
<element name="ui32HeaderVal" type="tUInt32" arraysize="1">
<serialized bytepos="0" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="f64HeaderVal" type="tFloat64" arraysize="1">
<serialized bytepos="4" byteorder="LE" />
<deserialized alignment="1" />
</element>
</struct>
<struct name="tNestedStruct" version="1" alignment="1" ddlversion="4.01">
<element name="sHeaderStruct" type="tHeaderStruct" arraysize="1">
<serialized bytepos="0" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="sSimpleStruct" type="tSimpleStruct" arraysize="1">
<serialized bytepos="12" byteorder="LE" />
<deserialized alignment="1" />
</element>
</struct>
<struct name="tSimpleStruct" version="1" alignment="1" ddlversion="4.01">
<element name="ui8Val" type="tUInt8" arraysize="1">
<serialized bytepos="0" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="ui16Val" type="tUInt16" arraysize="1">
<serialized bytepos="1" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="ui32Val" type="tUInt32" arraysize="1">
<serialized bytepos="3" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="i32Val" type="tInt32" arraysize="1">
<serialized bytepos="7" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="i64Val" type="tInt64" arraysize="1">
<serialized bytepos="11" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="f64Val" type="tFloat64" arraysize="1">
<serialized bytepos="19" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="f32Val" type="tFloat32" arraysize="1">
<serialized bytepos="27" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="ei8EnumVal" type="eSimpleEnum" arraysize="1">
<serialized bytepos="31" byteorder="LE" />
<deserialized alignment="1" />
</element>
</struct>
</structs>
<streammetatypes />
<streams />
</ddl:ddl>
cString
md_structtNestedStructcString
Pin Namenested_struct_array
Meta Type Nameadtf/default
Stream Type Properties
NameValueTypeDescriptionSubproperties
md_data_serializedfalsetBool
md_definitions
<?xml version="1.0"?>
<ddl:ddl xmlns:ddl="ddl">
<header>
<language_version>4.01</language_version>
<author></author>
<date_creation></date_creation>
<date_change></date_change>
<description></description>
</header>
<units />
<datatypes>
<datatype name="tFloat32" size="32" description="Predefined DataType for tFloat32" arraysize="1" />
<datatype name="tFloat64" size="64" description="Predefined DataType for tFloat64" arraysize="1" />
<datatype name="tInt32" size="32" description="Predefined DataType for tInt32" arraysize="1" min="-2147483648" max="2147483647" />
<datatype name="tInt64" size="64" description="Predefined DataType for tInt64" arraysize="1" min="-9223372036854775808" max="9223372036854775807" />
<datatype name="tUInt16" size="16" description="Predefined DataType for tUInt16" arraysize="1" min="0" max="65535" />
<datatype name="tUInt32" size="32" description="Predefined DataType for tUInt32" arraysize="1" min="0" max="4294967295" />
<datatype name="tUInt8" size="8" description="Predefined DataType for tUInt8" arraysize="1" min="0" max="255" />
</datatypes>
<enums>
<enum name="eSimpleEnum" type="tUInt8">
<element name="eEnum_value_eight" value="8" />
<element name="eEnum_value_five" value="5" />
<element name="eEnum_value_four" value="4" />
<element name="eEnum_value_nine" value="9" />
<element name="eEnum_value_one" value="1" />
<element name="eEnum_value_seven" value="7" />
<element name="eEnum_value_six" value="6" />
<element name="eEnum_value_three" value="3" />
<element name="eEnum_value_two" value="2" />
<element name="eEnum_value_zero" value="0" />
</enum>
</enums>
<structs>
<struct name="tHeaderStruct" version="1" alignment="1" ddlversion="4.01">
<element name="ui32HeaderVal" type="tUInt32" arraysize="1">
<serialized bytepos="0" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="f64HeaderVal" type="tFloat64" arraysize="1">
<serialized bytepos="4" byteorder="LE" />
<deserialized alignment="1" />
</element>
</struct>
<struct name="tNestedArrayStruct" version="1" alignment="1" ddlversion="4.01">
<element name="sHeaderStructArray" type="tHeaderStruct" arraysize="100">
<serialized bytepos="0" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="sSimpleStructArray" type="tSimpleStruct" arraysize="2000">
<serialized bytepos="1200" byteorder="LE" />
<deserialized alignment="1" />
</element>
</struct>
<struct name="tSimpleStruct" version="1" alignment="1" ddlversion="4.01">
<element name="ui8Val" type="tUInt8" arraysize="1">
<serialized bytepos="0" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="ui16Val" type="tUInt16" arraysize="1">
<serialized bytepos="1" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="ui32Val" type="tUInt32" arraysize="1">
<serialized bytepos="3" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="i32Val" type="tInt32" arraysize="1">
<serialized bytepos="7" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="i64Val" type="tInt64" arraysize="1">
<serialized bytepos="11" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="f64Val" type="tFloat64" arraysize="1">
<serialized bytepos="19" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="f32Val" type="tFloat32" arraysize="1">
<serialized bytepos="27" byteorder="LE" />
<deserialized alignment="1" />
</element>
<element name="ei8EnumVal" type="eSimpleEnum" arraysize="1">
<serialized bytepos="31" byteorder="LE" />
<deserialized alignment="1" />
</element>
</struct>
</structs>
<streammetatypes />
<streams />
</ddl:ddl>
cString
md_structtNestedArrayStructcString

Source Code
Remarks
  • You need a TimerRunner to get this filter working, see Timer Runner