2020-04-20 02:03:12 -05:00
|
|
|
description: examples of bindings for the double type
|
2020-03-16 11:58:11 -04:00
|
|
|
|
2020-04-20 02:03:12 -05:00
|
|
|
scenarios:
|
|
|
|
|
default: run type===stdout format=readout
|
2020-03-16 11:58:11 -04:00
|
|
|
|
|
|
|
|
# If you want to control the output, uncomment and edit the statement template below
|
|
|
|
|
# and modify the named anchors to suit your output requirements.
|
|
|
|
|
|
|
|
|
|
#statements:
|
|
|
|
|
# example1: "{fullname}\n"
|
|
|
|
|
|
|
|
|
|
bindings:
|
|
|
|
|
|
|
|
|
|
# All uncommented lines under this are indented, so they become named bindings below
|
|
|
|
|
# the entry above
|
|
|
|
|
|
2020-04-20 02:03:12 -05:00
|
|
|
# Normally, the value that you get with a cycle starts at 0:
|
2020-03-16 11:58:11 -04:00
|
|
|
|
|
|
|
|
cycleNum: Identity();
|
|
|
|
|
|
2020-04-20 02:03:12 -05:00
|
|
|
# here we convert the cycle number to a double:
|
|
|
|
|
|
2020-03-16 11:58:11 -04:00
|
|
|
id: Identity(); ToDouble()
|
|
|
|
|
|
|
|
|
|
## Sensor value
|
2020-04-20 02:03:12 -05:00
|
|
|
|
2020-03-16 11:58:11 -04:00
|
|
|
sensor_value: Normal(0.0,5.0); Add(100.0) -> double
|
|
|
|
|
|
|
|
|
|
# Example output:
|
|
|
|
|
|
|
|
|
|
# sensor_value : 97.65195455640468
|
|
|
|
|
# sensor_value : 102.36957817450308
|
|
|
|
|
# sensor_value : 106.1618147543308
|
|
|
|
|
# sensor_value : 105.69436460281086
|
|
|
|
|
# sensor_value : 95.76439295584129
|
|
|
|
|
# sensor_value : 99.79975449386073
|
|
|
|
|
# sensor_value : 102.3330464938251
|
|
|
|
|
# sensor_value : 100.58103001489948
|
|
|
|
|
# sensor_value : 99.15058382227814
|
|
|
|
|
# sensor_value : 97.17512591189272
|