Download as pdf or txt
Download as pdf or txt
You are on page 1of 37

click hacer click

right click hacer click derecho


left click hacer click izquierdo

we click in this element


nosotros hacemos click en
este elemento
input
control
ouput
indicator
indicador

the control is used to introduce data in the


program

the indicator is used to show the


values process by the program
INPUT
CONTROL OUTPUT
INDICATOR
INDICADOR

tip of arrow
punta de la flecha

this element gives us data


output

input

tip of arrow this element


punta de la flecha recieves data
this element executed the program one time.
this element is used to run the program

this element allow us to run or execute the program in


constant form

using this button we stop the program


selector
o perilla
compound arithmetic function

the small bubble means the input is invert.

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

this section represent the


conversion factor
while instruction

condition

instruction
cosine
while instruction

is used to stop or
continue the execute of
the instruction

this control shows us the quantity of time


the instruction is executed.
when you used the
while instruction is
necessary to put all
the elements that
you need to execute
inside the while
instruction.

while(stopbutton==false)
{
y=x+y;
}
this value represents a constant.
this constant is false

this value represents a constant.


this constant is true
and logic gate

true or false
program to increase a number
initial value
i=1
int i=1; final value

stop=false while instruction

stop!=true

program to increase a number


initial value
i=1
int i=1; final value

stop=false while instruction

stop!=true
the local variable module is used to record any
value when this element is related with any
control or indicator

this module recieves data this module sends data

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

wait until the next ms multiple

example to use both instructions

delay(1000);

we have a time of 1000 ms


this is equivalent 1 second
both instruction take the time of the internal
clock of the computer multiples of the number that we
define
multiplos del numero que
state of the module
nosotros definimos

time

this is the actually time that have the computer

state of the module

time
state of the module
2 cycle

3 cycle

1 cycle
time

this is the actually time that have the computer

state of the module 2 cycle

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

when the button is not pressed when the button is pressed

x x=x+1

x x+1 the value that we have in


control called Numeric is
x+1 because the value in
x+1 x+1 x+1
x the local variable is x+1.
false true
x x
select instruction
the instruction has three input. one input
receives a value of true or false. this input is
used to select the responce that appear in
the output.
T input

select input
F input

value if the input ? is true

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

this value shows us the quantity or


times that the instruction inside of for
loop are executed. the quantity of
repetions are from 0 to N-1

this element shows us the correspond cycle.


tunnel
tunel

the tunnels that we have in the left


side are considered inputs and the
tunnels that we have in the rigth
side are considered ouputs
program to stop the for loop and the while loop in
the same time
shift register
registro de desplazamiento

cycle 1 cycle 2

cycle 3 cycle 4
instruction case

using the instruction case , we can represent the


instruction if, if-else, ifelse, switch

this element shows us


this input is used to send the the different options that
option that we want we have

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
}

when the button isn't pressed


this element is used to see the
state of the button using the
normal indicator. in this case we
see if the state of the button is
true the value is "1" or is false its
value is "0".
switch(option)
{
case option 1:
expression 1
case option 2:
expression 2
case option 3:
expression 3
default:
expression 4
end

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

first, we execute the instruction that


are inside of the first frame. after of
that we pass the next frame.
intruction tap control

this instruction is used when we want to have


several options in the front panel. when you use
this instruction each option is independent then
you can put differents things in each one.

second
option

first
option

we can find this instruction in the option Layout and


choose tap control

You might also like