LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bundle block strange beaviour, maybe a bug ?

I  get a strange behaviour with the example vi attached

I have the following data structure :

a cluster made of 1 boolean and a fixed lenght array of 4 elements.
Each element of the array is a clusters made of two numeric values (N1 and N2)
I want to reset the values of N1 and N2 of some indexes of the array pressing a button.
In the example the value N1 and N2 are initialized at 1.
Pressing the reset button I would like to set the corresponding index value of N1 and N2 to 0.
To see the current value of the array I created an indicator.

In the example you can find two similar sections in the diagram.
The only difference is the connection point fo the 'Array Indicator'.
If I attach the indicator to a 'private' unbundle block I get the behaviour I expect: the values of N1 and N2 are set to zero.
If I attach the indicator to a node like in the lower diagram section I get a strange behaviour: the Status Out 2 is never updated. It seems like something don't work in the bundle block.

Another thing I've seen is that if I remove the boolean from the big cluster everything works fine in both cases.

I tried this example with LV 6.0 on two machines with Win XP and 98 .

Any idea ? Can somebody reproduce this behaviour also on LV newer versions?

thank you

Gianpiero

0 Kudos
Message 1 of 9
(3,344 Views)
Hi
 
I use LV7.0 on Win XP Professional. I just ran your vi and there were no differences.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 9
(3,335 Views)

Hi,

Should your array of boolean buttons (reset) be empty (greyed).

If you set the array to have the four boolean, then everything is fine.

Regards

Ray Farmer 

Regards
Ray Farmer
Message 3 of 9
(3,337 Views)
Yes, that's right. I noticed that too, but did not think about mentioning it ;).
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 4 of 9
(3,329 Views)
I set the array of boolean (reset buttons) default value to 4 elements (vi attached)
But nothing changes for me. I still get the same problem.
Which LV version did you use to try the vi ?

thank you

gianpiero


0 Kudos
Message 5 of 9
(3,327 Views)

Yes, your reset buttons were "greyed" because their containg arrays were "not initialized" - the solution there, is either to set some default values and "Make the Current Value Default" and save, or maybe it would be better to use a cluster of booleans and use the "cluster to array" function on the block diagram.

I've tried your example program using LV version 7.0, and I can't see any problems at all - the lower loop's output has exactly the same behaviour as the top loop.

Mark.

0 Kudos
Message 6 of 9
(3,314 Views)
LV version 6.1 is the oldest version I have installed - I don't see any odd behaviour there either.
 
Looking at the diagram/wiring, it's very difficult to understand how such behaviour might be possible - unless it really is a bug, but it seems so unlikely because it would be so fundamental.
0 Kudos
Message 7 of 9
(3,299 Views)
In the last example I post, the array of buttons was initialized but the problem is not there.
I tried also using a cluster to array, (attached vi) but nothing changes: the upper loop reset the lower doesn't.
And moreover connencting an indicator should not change in any way the data flow.
Probably is something related to LV 6.0 .
Anyway, I can do like in the upper loop to avoid the problem.

thank you all for your help!

gianpiero

0 Kudos
Message 8 of 9
(3,300 Views)
Hi,
 
I was using 7.1
Have you checked the Knowledgebase, seems to remember something about clusters that the later versions fixed.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 9 of 9
(3,288 Views)