Page History
...
Note: To view ftl files with highlighting, you may want to install the FreeMarker IDE feature from the JBoss Tools. However, this is not necessary to work with KIELER. JBoss Tools is available in the Eclipse Market Place and via update site. The update site for Eclipse Luna is stable releases is http://download.jboss.org/jbosstools/updatesneon/stable/lunaupdates/ . Note that only the FreeMarker IDE feature is required (Abridged JBoss Tools > FreeMarker IDE).
...
Snippet Name and Parameters | Description | Use on | Variable type | Remark | Defined in File | |
---|---|---|---|---|---|---|
Clock, milliseconds | Sets a variable to true if the time in milliseconds passed. | input | bool | See also ResetClock. | timing.ftl | |
ResetClock, clockVariableName, autoFalse | Resets a clock, such that the full time intervall of the clock has to elapse, before the clock will be set to true again. If autoFalse is true, the reset variable will be set to false automatically. | output | bool | autoFalse is true per default. | timing.ftl | |
Time | Reads the elapsed time since program start in milliseconds. | input | unsigned | timing.ftl | ||
TickDuration, targetInMilliseconds | Delays the execution until the tick loop takes at least as long as the given target duration. The input variable is set to the actual tick loop duration. | input | unsigned | Should be used on the very first input variable in the model, so that waiting is the last action in the tick loop. | timing.ftl | |
Delay | Lets the program delay the time in milliseconds of the variable value. | output | unsigned | timing.ftl | ||
SerialRate, baud | Sets the baud rate for communication. This is done only in the initilization, not in the loop. | output | unsigned | print.ftl | ||
Prints a string variable if the string is not 0. | output | string | print.ftl | |||
DigitalWrite, pin | Sets the pin value to HIGH if the variable is true and to LOW otherwise. | output | bool | read_and_write.ftl | ||
DigitalRead, pin | Sets the variable value to the pin state (HIGH or LOW). | input | bool | read_and_write.ftl | ||
AnalogWrite, pin | Sets the voltage of the given analog IO pin via pulse-width modulation (PWM). Integers from 0 to 1023 are linearly mapped to an pseudo voltage from 0V to 5V. | output | int | read_and_write.ftl | ||
AnalogRead, pin | Reads the value of the given analog IO pin. Voltage from 0V to 5V is linearly mapped to an integer value from 0 to 1023. | input | int | read_and_write.ftl |
...
Using the Serial Monitor
...