Additional Examples#
Configuration example#
Note
Example can be found in
<output-folder>/examples/bin
and can be executed:configuration_example
This example loads a VAPI Component with a configuration file as seen below. The example shows how the configuration file is parsed and the huge possibilities to configure almost any type of data.
[Configuration]
Version = 100
[[Component]]
Path = "configuration_component_example.sdv"
Class = "Configuration_Example"
Message = "It's me"
### the following is a valid JSON structure in a muliline string
JSONConfig = """{
"Logging": {
"Sinks": [ { "Type": "Stdout", "Level": "Info" } ]
},
}"""
Id = 42
Pi = 3.1415926
Boolean = true
Array = [ 1, 2, 3 , 5 , 7, 11, 13, 17 ]
Table = { a = 77, b = 1.2, c = "this is a string" }
Tasktimer example#
There are 2 examples: tasktimer and simulation tasktimer, the difference and how they can be used. The simulation tasktimer is meant to be used for the simulation with OpenXilEnv
.
Note
Example can be found in
<output-folder>/examples/bin
and can be executed:tasktimer_example
simulation_tasktimer_example