12-18-2007 03:37 PM - edited 12-18-2007 03:38 PM
12-18-2007 04:40 PM
12-18-2007 05:54 PM
How?
12-18-2007 06:03 PM
Although I would not use duplicate names for any controls, I can see having controls of different types with the same name. Like a string called abc and a numeric called abc. But to have two controls of the same type have the same name could lead to lots of confusion. I agree that NI should not allow this. Well I guess it is easy enough to just not do this yourself.
12-18-2007 06:19 PM
Crazy app, but you could have a tab control with a number of pages. On different pages indicator that have the same name and display the same info. Using references from tab property node, you can search by name to get the control ref num and send data to all indicators of same name but on different pages. I won't go into details, but it is a feature that can be exploited 🙂
12-18-2007 06:49 PM
I am not sure that it should be up to LabVIEW to disallow multiple controls/indicators with the same name. If they would suddenly enforce this, it would break a lot of old code.
I agree it can lead to horrible confusion if you are using local variables in such a scenario, but the overuse of locals is bad in general. It is incorrect to use local variables as a substitute for "variables" in text based code.
I believe the VI analyzer will tell you if names are not unique.
12-18-2007 08:44 PM - edited 12-18-2007 08:45 PM
12-19-2007 08:55 AM
@S G wrote:
I've often exploited this "deficiency" (though I wouldn't call it that) when replacing typedefs.
How?
12-19-2007 09:09 AM
12-19-2007 11:20 AM - edited 12-19-2007 11:20 AM