LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write multpli values in one section of ini file

deleted

Message Edited by maximint on 11-24-2006 07:19 AM

0 Kudos
Message 11 of 17
(1,423 Views)
Hallo together,

so I completed my SubVI. It works fine. The issue with the time (open close) is not so critical.
I changed from cluster directly to array. Thanks.
The issue with autoindexing doesn't work, but doesn't matter.

Many Thanks, Thomas.

0 Kudos
Message 12 of 17
(1,421 Views)
Hi Thomas,
to use the auto-indexing feature (which is very useful) you have to change the terminal- behaviour to auto-indexing via the context menu, like shown in the first picture. Then you don't need to determine the array size outside the for-loop and to index the array yourself. After this your VI looks like picture 2. And to make it academicaly complete, the open and close of your INI- file has to be done only once, so you do it outside the loop, like picture 3.









Greets, Dave

Message Edited by daveTW on 11-27-2006 10:03 AM

Greets, Dave
Message 13 of 17
(1,396 Views)
In addition to the message of daveTW, you should ensure that both arrays (keys, values) which are passed into the for loop have the same size. Otherwise the loop iterates according to the number of elements of the smaller array. So if for any reason you have an array keys (size 10) and an array values(size 8), the loop iterates 8 times.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 14 of 17
(1,387 Views)
Hi Dave,

again thanks for the great support. Now the autoindexing work. The problem was: N and I of the loop has to be free.
Now, the VI is just small and quick.
The number of items in the arrays are definitly the same.
VI s could be so easy.

Thanks, Thomas.
0 Kudos
Message 15 of 17
(1,378 Views)
Hi Thomas,

even with N and i wired you can use auto-indexing.
You just have to keep an eye on the size of the inputs, LV will use the smallest number possible of N and any indexing input of the loop!
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(1,371 Views)
Yes, and to put one on the top: the N terminal of the while loop is a datasource to the inner side of the loop, which tells you this smallest number of array sizes & N.
Greets, dave
Greets, Dave
Message 17 of 17
(1,350 Views)