10-18-2013 01:55 AM
My original question was 'Is this new? Or did I change something?' and now I know that it's a new feature that escaped the release notes - thanks for clearing that up.
Actually, I find the new style is more readable for nested loops but I now find that my current code (which has a mixture of new code written in LV 2013 and code from earlier) is confusing me because the old 'while' loops have remained (understandably) in the old style. I think this needs thinking through.
IF NI introduce an option for the style of while loops labels (and perhaps other subdiagram labels) it would be good to have an option to bring the style elements of the current VI (or project) up to date or be set to some preset or standard style.
I'm not currently a fan of having both styles in my project (or even in the same VI when I'm updating older code).
10-19-2013 12:17 AM
I think it would be good for us to have a tool to be able to convert all While Loop subdiagram labels in a given set of VIs to the new appearance. I could write a tool to do this, but it would have to assume the default While Loop color, since there is currently no way in scripting to read the color of a loop. Would you find such a tool useful?
We do have somewhat of a precedent for this...I have written tools in the past (and posted them to the NI Forums) to convert all control/indicator terminals in a group of VIs to non-icon view, and to convert all structures to non-auto grow.
11-07-2013 09:15 AM
Daren,
Sorry for the delay .... other fires and all that!
A tool would be useful - but I would only need to use it on 10-20 files so don't spend hours on it just for me. If you did, though, the default 2013 style would be absolutely fine 🙂
I had no idea you could even write a tool like that .... !
Steve
11-07-2013 10:36 AM
Here you go. In LabVIEW 2013, point this VI to a folder containing your VIs and run it. It will convert the appearance of all While Loop subdiagram labels in your VIs to the default LabVIEW 2013 appearance. Make sure to back up your code first, as this utility will make changes to your VIs and save them in LabVIEW 2013.
Let me know if you have any further questions. I'll try to post this utility VI as a Darren's Nugget at some point soon, to benefit other users who desire this functionality.
11-07-2013 11:11 AM
11-07-2013 11:51 AM
@Darren wrote:
Thanks, Darren! Have a cheeseburger on me. 😉
11-07-2013 12:19 PM
Thank you!!!!
And it worked - definite kudos ... and I enjoyed looking at the code too.
Thanks again,
Steve