Professional Documents
Culture Documents
UNIDAD
UNIDAD
tip of arrow
punta de la flecha
input
to invert the input is neccesary put the mouse in the input that we want to invert and right click
and choose the option invert as we can see in the figure
appear a bubble
in the input to
indicate this
we select the
input is invert
input that we
want to invert
when we right
click, we choose
the option invert
how to raise any number to certain power
the input accepts values in radians
sine waveform
forma de onda seno
conversion factor
condition
instruction
cosine
while instruction
is used to stop or
continue the execute of
the instruction
while(stopbutton==false)
{
y=x+y;
}
this value represents a constant.
this constant is false
true or false
program to increase a number
initial value
i=1
int i=1; final value
stop!=true
stop!=true
the local variable module is used to record any
value when this element is related with any
control or indicator
cycle 1
if we want to leave
cycle 2 to increase the
number. we need to
press the button
sptop
cycle 3
both instruction are equivalent to the instruction
delay in arduino. both instruction generates a time in
milisecond
wait
delay(1000);
time
time
state of the module
2 cycle
3 cycle
1 cycle
time
3 cycle
1 cycle
time
program to increase a number
initial value
i=1
int i=1; final value
final=10 while
instruction
i<=final
this program is used to increase a number when the button is pressed
x+1
x x=x+1
select input
F input
true or
false
value if the input ? false
example
when the input ? has the value of true, in the output is considered the
input that has the value four. if the input ? has the value of false is
considered the value seven in the output
false 7
true 4
instruction for loop
0<=(value-1)
i=1
i<condition
i=i+1
action
cycle 1 cycle 2
cycle 3 cycle 4
instruction case
sub-diagram True is
equivalent to have
if(condition) the if section.
{
expression 1
{
else
{
expression 2
} sub-diagram False
is equivalent to
have the else
section.
when the button is pressed
if(button is pressed)
{
led turn on
{
else
{
led turn off
}
the control called Enum is located in the panel frontal. the process to obtain this is
the next: right click, you choose the option Ring and enum and select the module
Enum
In the instruction called Enum is used to define the option that we
need in the structure case. to add the option put the mouse in the
module, right click and choose the option properties and select the
field called Edit items and insert the options.
flat sequence
this instruction is used to make a sequence of
something
in the second frame, the process is the same, when all
the instruction is executed then we pass the thrid frame
and we continue with that process until to reach the last
frame
second
option
first
option