Hello, friends, today to discuss about.
Structures, or you can say loops and labview basically in this.
First, I look this, so over here is my fault.
So it is similar to see language over here, we can say for loop is a finite loop.
This is indexing.
I mean, mainly it will start from zero loop lubrication.
It will start from zero and goes up to and minus one.
This is going loop.
Come over here.
You have to set the value in which your loop runs.
Basically, it is called finite.
This is the structural fight for loop and.
In this poor loop, there is some important points, like if you want to convert this fall into why
loop means if we said the value of NT is the value of any is very large.
And if we want to stop this loop in between.
So for that purpose, I just click on the edge, right click then add condition.
This will create a terminal so that you can stop this for loop in between.
Also so I take the example of this also.
So first I take.
Default for loop, this is the default for loop, and in this case, I just take a listen and and this
I want to add.
No value with lubrication value, and in this case, I want total 10 value, so in this program, my
loop runs 10 times.
Basically, it will start from zero and goes up to N minus one.
So my loop goes from zero.
One, two, three, four, five, six, seven, eight, nine.
And then it will stop and it will generate the value.
And when I connect this over here, it will create total.
It is photo index, and over here it will create headache means it has 10 values in this and these values
are.
Like when I hit them like this.
So as you see or hear, they say this part is the problem created by a random number.
So over here is my lookout, because in this case, the value of random number is in between zero to
one.
And here is the low count, which goes from zero to nine.
So over here, zero, one, two, three, as you see.
And over here, I go to the values of this rule.
So in the default mode, the auto indexing is on.
In the case of for loop, if you want to change it to last value or concatenate it to your account conditional.
These are the other options available, but they fold.
It is auto indexing in case of volume.
So this is the case of for loop and using this you can create an eddy made basically one theory.
So if you want to create a tool for that purpose, I just created another for loop over here.
This is called nested loop means loop under loop.
So I also create a content and put the value in.
And when I connect this to the edge of this, it will give me up to the attic.
As you see over here.
This is my scalar value over here.
This is my one day and over here is my buddy.
So for results.
Like.
Select this.
I put over here and this.
Well, give me 10 then values.
So when I hit on one button, it will generate values.
OK, so if you want to check.
Banuelos.
Tendrils and then columns on the.
As you see.
First, I encourage this one time, one, two, three, four, five, six, seven, eight, nine, 10.
OK, and when I further increase this.
There is a blank.
OK, so this is the case of nested loop and for loop, so basically an outer loop current one time,
one time and inner loop current 10 times.
Basically, this is the concept in this.
So this is the case or for loop.
Then we go to our next picture.
Which is why you basically why loop is a finite, infinite loop.
It is similar to C language over here.
This is my loop iteration and this is my stop button.
This loop runs in find a finite time fill.
When I stop this, so according to this, I create again an.
And in this case, when I connect this or here, this is a.
Let them no, I put no.
And then numerics.
And when I create control and it will generate.
Values.
In the case of Bilal, it is the folded, lost value, as you see, you can convert it to index mode
also like this.
So in this case or here, we have any evidence.
So when I hit on that button, it create so many values and when I stop it, so there are so many values
in the loop.
So to stop this, I just create a wait stop button, not stop button, wait for one thousand milliseconds
so that when I hit on again one button in this case when I hit one stop, in this case it will generate
only few values like four one, two, three, four, five.
After five seconds, I create a stop.
So this is the case of loop.
You can also convert this while loop into four loop as you see out here when I delivered this right
now I want to create this while loop into a stop for loop.
So for that purpose, I just take a comparison when this value and this indexing value, it is equal
to ten as in for a loop.
So it will give me right now, it will give me total ten values.
So when I hit on the bottom, as you see.
It there is a basic difference between loop and loop in this case I put in so that when it is equal
to 10 or 20 days of gold or nine in this case, it will create a little function and it is stop right
now.
So this is the case.
There is a basic difference between for loop and why loop for loop is finite loop while loop is infinite
loop and loop.
When you run your program, it will by loop run at least one time.
It will run at least one time, but this is not the case in full loop, so you have to remember this.
So this is the case how you can work your way loop into for loop.
So this is the structure of a loop.
So next structure in this structure we have structure.
Structure is basically in this.
You have to select the cases default and the default is there are only two cases, true and false,
like when I create a push button or there and when I connect this to our case structure and I want to
generate five-fold and zero hold in this case.
So I put glue in this case, I put 15 and in the false case I just put zero.
So it will give me these two values according to my selection.
So over here, this is the indicator.
So when I don't continue to run, my problem is on false.
It gives me zero and I don't own it.
Give me 15.
So using this, you can use your case, the in the case structure.
You can select anyone.
You can connect your bulan to the structure.
You can connect your building by not building.
You can connect to an integer control to your key structure, because in this case, those cases are
like one, two, three, four, five, six, not like one window and one point two.
OK, so again, there is a case of like how you can select the case structure.
And over here, I selected control.
And I want to change this.
Integer, and when I connect this to this, the cases are zero and one, this is the default case,
you have to make our default case in the case structure, because if the case, which is not present
in the case structure is executed, like in this case when I put the numeric value to the case of zero
is executed.
So I here, like, I put a constant I just connect this to this in this case, zero is going to be going
outside.
In this case, one is going outside.
So creating data.
So when I put two or three or four in this, which is not the part of case, it will be the default
case.
In this case, my values zero.
And when I put one, it will give me one.
So this is the case of case structure with the numeric case.
And you have when you want to add some case after this, like this case to over here, like I create
a and put a value to and another case after this.
And in this case, the value is three.
So when I continue to run it.
So one, two, three.
According to this, I go to the value and when I again increase so the fourth case is not available,
so it will give me the full case.
OK, so this is the case of case structure with numeric part.
Then we go to stringybark.
So again, I take a case structure and in this case I take us to incontrol.
So this is my strong control and when I connect this to my string.
So over here, like I.
But the name A.
Then the characters would be the same if it is capital X, would be capital industry B, then I would
guess after X would be.
Like, see, so I put some values.
No, to control like that, in the case of.
S..
In the case of me, like I have a bad.
Just connect this, and in the case of a it is an apple.
So I just connect this and over here, this is my indicator, and when I continuously run this and the
default guess, the value is nothing.
So default is a for Apple, it is gone.
Then when I put in this, it will give me back.
And when I put C in this, it will give me care.
And when I put B in this the default cases there.
Apple.
OK, so this is how you can use your case picture in LabView.
It is very easy.
So.
Our next Dr..
Is flex segments basically flat segments is a little bit similar to our case structure in this case.
Also, there are cases, but in flagstick the cases are executed in a manner like in a process.
For example, first I put a dialog box in this.
So over here, this is a one button dialogue.
So messages like start.
Start the process after this, I guess, in this.
So when this one is executed after this, this one in.
This one is executed, so over here process.
And at the last leg, I have to stop the process.
So one by one, it is executing in the case of case structure, we have to select the case.
In this case, this is executed one by one.
So over here, this is my stop.
OK, so this is the case.
And when I hit on Ron Button, as you see, start the process when I hit on this, OK, next Nilo button
process.
Next dialogue button stop.
So it will execute like this first.
This will execute the portion of program placed in this part.
It will execute first, then it will execute, then it will execute.
So this is a process.
So this is the case of sequence.
And there is another structure, steg sequence you can convert.
This sequence is similar to plan sequence, but there is a difference in this flat sequence and there
is a space requirement is more.
But in sequence there is when you replace it with sequence over here, there are cases out of there
like 012 and these are executed in a minute.
So first zero execute, then one, then two.
OK, so this is the case of Steg, the sequence and you can use in your process.
So after this, we go to our structures again and we have a formula like we have a formula A. This is
similar to your C coding.
You can check using help.
You can perform these formulas using this.
So, for example, I want to I have I input a.
Which is equal to.
Be able to see like this in this, my input is like capitally and we're here, I want to add input.
My input is be another input is C and another output is.
So you have to create control over their.
And we're in it, so right now it is Broken Arrow because the air error.
We have to put semicolon over here right now.
It is OK to control you because minimize space.
So when I put on values like four seventy five to seven, you make thirty five.
OK, so like this you can create any expression, any program in this area and according to the program,
it will execute your problem.
OK, so this is the case of formula not not for loop.
Next, if you want to disable or enable any part of your program, for example, you have a program.
Like this.
I have multiple functions in this.
And when I connect this.
Over here, this is my control, this is my import, this is where put.
This is my.
So this is my program and I want to disable this plus part in this, so when I use a disabled structure
like this and this, it will disabled and it will pass the same value as you see.
So when I put value in this like one and over here two, so it will give me one and two.
Give me one plus two, three, three over here, three.
And over here it is one.
And over here it is two.
So it is two, three by two days, one by five.
So check it.
There is.
Not defined because this is.
No.
Over here we have we have no connection.
So when I enable this.
And in the case of evil like this, as you see, we have zero point five and in the case of table we
have.
OK, so you have to disable this if you want to disable any part, you can use this.
And in the case of.
And we.
Disable this.
OK, so if you want to disable any part of your program, you can use this.
So this is how you can use structures in your programming.
So in the structures, we have some decoration.
But also, like, if you want to label something, if you want to frame something or if you want to
integrate something you can use, these are all OK.
And in this we have feedback node, some local variable and global variable.
If you want to put some value in a V from one place to another place, you can use local variable if
you want to place the value from one value to another via what you want to transfer value from one way
to another.
You can use global variable.
So this is all about.
Stojcevski or Loop's Elavil, thank you.