JackDunaway Posted November 17, 2012 Report Share Posted November 17, 2012 Can someone describe why Error 1 happens? It appears you cannot dynamically register an array of control references if the array is connected on the ConPane -- disconnect from the ConPane, and the error goes away. And it's just for arrays, not scalars. (LV2012 VI attached) DynamicEventRegistrationForRefsOnConPane.vi Quote Link to comment
JamesMc86 Posted November 17, 2012 Report Share Posted November 17, 2012 Hate to be a bearer of bad news but it is a bug that has been reported as CAR 366331. It was originally reported at http://forums.ni.com/t5/LabVIEW/2012-Dynamic-Event-Registration-Array-of-Controls/m-p/2120100/highlight/true#M688441. Quote Link to comment
Popular Post JackDunaway Posted November 17, 2012 Author Popular Post Report Share Posted November 17, 2012 (edited) Hate to be a bearer of bad news but it is a bug that has been reported as CAR 366331. It was originally reported at http://forums.ni.com...ht/true#M688441. Thanks, James! I've chimed in and cross-posted on that thread. (Bad news? This is kinda great news, for my sanity....) And here's a janky workaround, instead exposing a variant on the ConPane then converting inside the SubVI: Edited November 17, 2012 by JackDunaway 3 Quote Link to comment
Popular Post JackDunaway Posted November 19, 2012 Author Popular Post Report Share Posted November 19, 2012 Here's a new fix that is much better than the Variant fix: it looks like the "Always Copy" node once again pulls through as the CAR-buster: 3 Quote Link to comment
Popular Post Darin Posted November 19, 2012 Popular Post Report Share Posted November 19, 2012 Once again I will suggest that the icon of the Always Copy node should be changed to a Band-Aid. A Roach Motel would also work, but that is probably harder to draw in such a small space. 4 Quote Link to comment
mje Posted November 19, 2012 Report Share Posted November 19, 2012 Now I *really* want to know what's going on under the hood that would cause the bug-- and for the primitive to automagically fix it... Quote Link to comment
JackDunaway Posted November 19, 2012 Author Report Share Posted November 19, 2012 How the heck did you figure out this workaround? To adapt the $10k engineering invoice joke -- "$1 for the hammer strike, $99 for knowing where to strike it, and $9900 for all the recreational programming and nights reading LAVA, Darin.K, et al." 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.