LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure updates poorly when changing events connected to the "Reg Events" node


@raphschru wrote:

I also tested with LV2016 and LV2018 and it behaves exactly as I showed for LV2020.

So the "bug" was always there.


I'll see your LabVIEW 2016 and raise you to LabVIEW 8.2.1.  Yep, same behavior.  So this is likely something that has been there since the dynamic registration came out.

 

But something I did notice with the control registration one: The event index changes to "<?>".  In the other versions I tried, it would say "<3>".

 

And just noticed while playing with it in 2016 that if the User Events have different types (ie I changed the "Other Event" to a string), it works perfectly fine.  So this appears to be related to finding the first event with the correct data type.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 11 of 15
(677 Views)

If you delete the wire going to the dynamic event terminal before adding the new event to the top, then reconnecting it, it seems to work.  However, this does not work for the one with the array of control refs.  I wonder if that is somehow related to the fact that it's an array?  At any rate, it ain't workin' right.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 15
(671 Views)

I've alleviated this issue somewhat by grouping event refs into clusters to use with the registration and I can't recall as many headaches around this ordering. Otherwise I've skipped caring about wire overlaps to always add new items to the bottom.

0 Kudos
Message 13 of 15
(649 Views)

Grouping refs into clusters only makes it more complex to maintain, and the reordering problem is still there.

 

Here with user events:

Bug - Update Event Structure - Cluster of User Events.gif

 

With controls it's even more vicious, you have to touch the Reg Events node to bring the bug to light:

Bug - Update Event Structure - Cluster of Controls.gif

0 Kudos
Message 14 of 15
(602 Views)

Not the control refs, the event refs. I'll nab a screenshot when I get a chance.

0 Kudos
Message 15 of 15
(582 Views)