LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why have my 'while loop' subdiagram labels changed style?

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).

0 Kudos
Message 11 of 17
(1,000 Views)

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.

0 Kudos
Message 12 of 17
(981 Views)

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

0 Kudos
Message 13 of 17
(955 Views)

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.

Message 14 of 17
(950 Views)
0 Kudos
Message 15 of 17
(944 Views)

@Darren wrote:

Here's the nugget post.


Thanks, Darren!  Have a cheeseburger on me.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 16 of 17
(936 Views)

Thank you!!!!

 

And it worked - definite kudos ... and I enjoyed looking at the code too. 

 

Thanks again,

Steve

0 Kudos
Message 17 of 17
(929 Views)