07-27-2018 04:28 AM
07-27-2018 04:49 AM - edited 07-27-2018 05:14 AM
@JarleEkanger wrote:
You can ease on your string reference worries by cleverly utilizing the properties of typedef enums and the "format into string"-function 😉
Or by not using them.
Putting the Obtain Queue, with attached name constant, in a sub VI also makes it (a bit) better...
Finding the references is just one of the problems. Name collision is another. I've seen "frameworks" fail, because someone created a VI named "main", and the framework used VI names as (totally redundant) named queues. Of course there was another (totally redundant) queue already using "main".
In sort, it's causing more problems then it solves. And they can almost always be avoided. Avoiding it will almost certainly result in better data flow. Having to connect a wire might seem annoying, when you can simply use a string to get access, but those wires make your program a lot more readable.
But suit yourself. I've seen it go sour too often.