LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to do a loop for controls

I have the same code to be run for all the ring controls.How to do this.I want to put the code inside the loop but only the controls name is to be repeated or changed.thanks in advance
0 Kudos
Message 1 of 9
(3,499 Views)
IF you want to use the same code for one ring control and us the Strings, create a property node of the ring control and usr the property Strings[].

if you want to use the same code for different ring controls, use a SubVI.

Chris
0 Kudos
Message 2 of 9
(3,499 Views)
Herewith I'm attaching my file.PLease comment and tell where should i correct.
0 Kudos
Message 3 of 9
(3,499 Views)
In the file attatched I included the things I thought you could do. Since all the Rings are the same you can put them in an array. The operation you are doing is allways the same so I put it in an SubVi. Now you can easily use a loop to calculate the 8 differences you are looking for.

Hope this helps
Chris
0 Kudos
Message 4 of 9
(3,499 Views)
Hi friend
Sorry for the inconvenience.I'm having only LV6.1 version.It seems you have compiled in LV7.So i could not able to open it.Find me a please.So that it'll be helpful for me.
0 Kudos
Message 5 of 9
(3,499 Views)
0 Kudos
Message 6 of 9
(3,499 Views)
Its great.you have reduced many things.But why all the values are not getting plotted in a single run as the previous one vi that i have sent.In this it is plotting one by one for every run.
0 Kudos
Message 7 of 9
(3,499 Views)
hmmm i get all values plotted in a single run. I can't think of a reason why it should not be like that.
0 Kudos
Message 8 of 9
(3,499 Views)
No problem.Any i got it workrd with your ideas.Thanks a lot.
0 Kudos
Message 9 of 9
(3,499 Views)