From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
08-25-2011 06:10 PM
Hi
I have developed a program in which the values from the multicolumn list box are read and passed on to some other instrument. To read specific values from the listbox I have used index array to grab the value of a particular cell and pass to the instrument.
Lets say if I want to run the VI multiple times and I want to increment the row index each time the VI runs so that for successive runs the values from the next level of rows are read.
For eg. I have the following listbox
DUT Vd Vg
1 0.2 0.3
2 0.4 0.6
So for the first run based on the index which I specify the listbox can read 0.2 and 0.3 and suppose if I run this VI for lets say 2 times during 2nd time it must read 0.4 and 0.6 instead of 0.2 and 0.3.Is there any way to increment the row/column index automatically? Please help me as this is the last step in my project.
Thanks,
Robin
Solved! Go to Solution.
08-25-2011 06:54 PM
You would need to keep the index in an uninitialized shift register and increment it with each run.
08-25-2011 07:57 PM
thank u ....that works but.....for some reason....when i select N of the for loop as 0 and run multiple times it reads only the 1st row (i.e 0th row as per the multicolumn listbox indexing) but when i select N as 1 and run multiple times....it forgets to read the 1st row (i.e. 0th row of multicolumn list box).
Any suggestions?
08-25-2011 08:25 PM
Why would you set the N terminal to 0? It won't execute the contents of the For loop. Setting it to 1 will execute once, but without a VI to view, I'm only guessing at to what is going on. Can you post a VI of what you have? It would help.
08-25-2011 10:09 PM
I was just trying to play with the function and konw how it works...anyways here is the VI...thanks for ur help...
08-25-2011 10:52 PM
Your VI runs millions of times per second and runs out of elements within nanoseconds. You need to prevent that.
Here's a quick modification that goes to the next row whenever you re-run the VI, and starts over when it runs out of elements.
Maybe it will give you some ideas....
08-29-2011 04:20 PM
Hi
That looks gr8. Infact I have modified some portion of it to suit my program. Thank u very much...
Robin