10-27-2011 09:30 PM
Hi GerdW,
Since the topic is similar, i though I can add my queries here. Sorry about that.
I have an appended array with time string and certain values.
I have initialized a 2D array named Output Array In.
If I run this I get the continuous value only in the first row of the 2D array.
My requirement is I need to get (2011/10/28 10:26:18.155) (00) (09) (22 00 00 00 00 00 00 00) in 1st row
(2011/10/28 10:26:19.155) (00) (09) (22 00 00 00 00 00 00 00) in 2nd row
(2011/10/28 10:26:20.155) (00) (09) (22 00 00 00 00 00 00 00) in 3rd row... and so on in the 2D array.
Working version is LV7.1
Thanks
KB29
10-28-2011 02:05 AM
11-09-2011 08:44 PM
Hi,
I have an another query. Now this while loop comes inside a main vi which runs in a while loop i.e. this is now a while loop inside a while loop. I need the output as:
1) The main loop will run and call the inner while loop.
2) The inner while loop should run once and give the value with the timestamp(10/11/2011 10:00:00; 11 00 00 00 00 00 00 00) and come out automatically (is it possible without pressing the Stop button)
3) The inner loop value should be updated in the indicator which will be present in the outer while loop.
4) Again the outer while loop will call the inner while loop after 1 second.
5) The inner while loop should give the value as 10/11/2011 10:01:00; 11 00 00 00 00 00 00 00)
In case of any change in the value, it should get updated.
Hope I am clear with the query.
Thanks
KB
11-09-2011 10:46 PM - edited 11-10-2011 10:38 AM
KB29 wrote:Hope I am clear with the query.
No, your description makes no sense at all!
KB29 wrote:1) The main loop will run and call the inner while loop.
2) The inner while loop should run once and give the value with the timestamp(10/11/2011 10:00:00; 11 00 00 00 00 00 00 00) and come out automatically (is it possible without pressing the Stop button)
3) The inner loop value should be updated in the indicator which will be present in the outer while loop.
4) Again the outer while loop will call the inner while loop after 1 second.
5) The inner while loop should give the value as 10/11/2011 10:01:00; 11 00 00 00 00 00 00 00)
In case of any change in the value, it should get updated.
11-10-2011 12:04 AM
I had just tried out different methods so I had put it over there. It is justa sample program.
Output array In is the initialized array.
I want the output array to be giving the values as 2011/11/10 10:00:00 00 09 Value
2011/11/10 10:00:01 00 09 Value
2011/11/10 10:00:02 00 09 Value
So I just tried with Insert into Array and Build Array via shift registers.
Thanks
KB
11-10-2011 12:36 AM - edited 11-10-2011 12:39 AM
You still make no sense. In what way is Gerds's example above not what you need?
Your problem is are the two stacked loops. Since you initialize the shift regsiter in the inner loop, it will not survive the next iteration of the outer loop, but will get reinitialized over and over.