07-01-2008 12:46 AM - edited 07-01-2008 12:50 AM
07-01-2008 12:53 AM
Hi mathan,
why do you use local variables?
Can you show your code, i don´t fully understand the problem?
Mike
07-01-2008 01:02 AM
Dear mike,
I can't able to post that code here. Please understand. I will explain bit more in detail.
Actually, the user will select either 1 or 2. If he selects 1, then there will be some output (10 values) in an array. If he selects 2, then there will be some 7 values outputted in the same array.
On continuous calling of this vi in another vi, when the user selects 2, the array holds first 7 values correct, but the last 3 values remains showed (occured during selection of 1) and not cleared.
But in the same vi, it works great. That is for selection of 1, it holds 10 values and selection of 2 will shows 7 values.
Give me a workaround. I tried with initialize array clearing the array at the time of each call. But nope.... ![]()
07-01-2008 01:24 AM - edited 07-01-2008 01:24 AM
Hi mathan,
did you store your data in a shift register? You can use the array subset function. See this picture.
Hope it helps. Mike
07-01-2008 03:45 AM
Dear mike,
I am sorry if i was not clear. Still finding difficulties.
In the subvi, i will get these array values case 1: 3B 6D 01 7E 6F 01 80 AB 90 00 and also the length of this array(Here 10). case 2: 3B 6D AB 90 00(Here 7). Both outputs(array and length) are coming from a dll output.
When i called the subvi in another vi, and just displayed the array (using connector panes), the array was not properly displayed as i told in previous posts.
Now i just want, if i have array length and array from a subvi, inside the main vi how to limit the array display with that particular length.
07-01-2008 04:29 AM
mathan wrote:Now i just want, if i have array length and array from a subvi, inside the main vi how to limit the array display with that particular length.
07-01-2008 04:38 AM
07-01-2008 04:44 AM
Dear GerdW, ![]()
Yes. Just now checked that option also.
Works very fine. ![]()
Thanks, ![]()
Mathan