Code Examples
Category 1: START PULSE
This category is triggered when the user inputs "START PULSE". It sets several variables to 0 using the <set>
tag and then invokes the "OUTPUT PULSE" category using the <srai>
tag.
Category 2: ADD TO ACCUMULATOR
This category is triggered when the user inputs "ADD TO ACCUMULATOR".
It increments the value of the "accumulator1" variable by 1 using the <set>
tag and then invokes the "OUTPUT PULSE" category.
Category 3: READ CONSTANTS
This category is triggered when the user inputs "READ CONSTANTS". It
sets the value of the "constantsTransmission" variable to 42 using the <set>
tag and then invokes the "OUTPUT PULSE" category.
Category 4: SET ACCUMULATOR * TO *
This category is triggered when the user inputs a pattern like "SET
ACCUMULATOR 1 TO 5". It captures the values provided by the user using
the <star/>
tag and sets the corresponding accumulator variable using the <set>
tag. It then invokes the "OUTPUT PULSE" category.
Category 5-9: SET ACCUMULATOR 1-5 TO *
These categories are similar to Category 4 but specifically set the values of the individual accumulator variables (accumulator1, accumulator2, accumulator3, accumulator4, accumulator5) based on the user's input.
Category 10: PAUSE PULSE = *
This category is triggered when the user inputs a pattern like "PAUSE
PULSE = 5". It captures the value provided by the user using the <star/>
tag and sets the "pausePulse" variable using the <set>
tag. It then invokes the "OUTPUT PULSE" category.
Category 11: HALT PULSE
This category is triggered when the user inputs "HALT PULSE". It sets the value of the "haltPulse" variable to "true" using the <set>
tag and then invokes the "OUTPUT PULSE" category.
Category 12-16: POT 1-5 *
These categories are triggered when the user inputs patterns like
"POT 1 5". They capture the values provided by the user using the <star/>
tag and set the corresponding potentiometer variables (potentiometer1,
potentiometer2, potentiometer3, potentiometer4, potentiometer5) using
the <set>
tag. They then invoke the "OUTPUT PULSE" category.
Category 17: SUM POTENTIOMETER
This category is triggered when the user inputs "SUM POTENTIOMETER".
It calculates the sum of the potentiometer variables (potentiometer1,
potentiometer2, potentiometer3, potentiometer4) using the <add>
tag and sets the value to the "sumPotentiometer" variable using the <set>
tag. It then invokes the "OUTPUT PULSE" category.
Category 18-19: STORE RESULTS AS * / STORE TABLE AS *
These categories are triggered when the user inputs patterns like
"STORE RESULTS AS X" or "STORE TABLE AS Y". They capture the values
provided by the user using the <star/>
tag and store them in the "results" or "table" variables using the <learn>
tag. They then invoke the "OUTPUT PULSE" category.
Comments
Displaying 0 of 0 comments ( View all | Add Comment )