LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Looping of elements in an array

Solved!
Go to solution

What is your meaning of cycle?

 

You simply need more detailed parsing that recognizes two numbers in the "for" statement. It could select between the two based on the iteration number of the outer loop or e.g. based on the output of the "first call?" function.

0 Kudos
Message 11 of 16
(780 Views)

cycle means upon first execution and

 

with loop values our objective is suppose if am using any power supply in program and i want program ity for 5 different values then instead of writing it again and again inthe array we want to use Loop( 1,2,3,4,5) and then powersupply and then at the endEnd(Loop) or anyhting to detect termination, so that it should get programmed automatically.

 

if i am using it at the beginning it is running fine but again if i want to run in b/w the array or within the for loop, it is not ececuting well that's where i am getting problem

 

i want to know how i can use that loop in the logic givewn by you i added the case structure for loop i am not getting do i need to add separate case for implementing loop logic or i can do that within the given case structures only.

0 Kudos
Message 12 of 16
(777 Views)

It is not clear what you loop statement is supposed to do. Can you tell us the exepcted output for the default input of your last code attachment.

0 Kudos
Message 13 of 16
(760 Views)

Thanks altenbach for the reply,

 

attached is the image which shows the expected output.

0 Kudos
Message 14 of 16
(747 Views)

(Please try to crop attached pictures to a reasonable size. Your contains tons of white space to the right and at the bottom.)

 

Sorry, it is still not clear. Why is the output of the loop 889988998899 instead of 898989?

0 Kudos
Message 15 of 16
(741 Views)

(Please try to crop attached pictures to a reasonable size. Your contains tons of white space to the right and at the bottom.)

 

Sorry , next time i will take care of this.

 

Sorry, it is still not clear. Why is the output of the loop 889988998899 instead of 898989

 

because upon first execution it will program both the instruments to first value i.e 8 in this case that's why 8 8 the second value withinn loop is 9 then it will program to 9 9 after that since we have kept in for loop that's why same procedure will repeat for 3 times.

0 Kudos
Message 16 of 16
(739 Views)