I feel like in a few cases, my code could be more readable, if a picture ring constant existed. By that I mean if I could have a block diagram object, that showed an image, and clicking it would allow me to select one of the other images in the ring, which correspond to a numeric value, just like the picture ring control does.
I've come into a few cases were I want to know if my picture ring on the front panel is equal to some case. So I will use the equal primitive and compare my picture ring control value to a constant. Problem is my constant is just a numeric, because that is what the data type of the picture ring is. I then usually need to put down a comment explaining what the value of 2 or 3 is supposed to be. I feel like a better solution for readability would be to have an equal function, and wired to it, is another instance of that picture ring type def, where you can see the image that the value is being compared to.
Now sure this doesn't come up often, and in most cases it is recommended you convert that ring into an enum, and then you get a bunch more benefits, but in a few cases I feel like adding a picture ring constant would only make the code more readable.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.