LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
danbrown

tooltips for block diagram code

Status: New

I'm a great advocate of commenting code, but with the graphical nature of Labview, you need space on your block diagram to add in a post-it giving your comments. That's great if your block diagram is nice and spread out, but (perhaps due to poor planning/programming) i'm often finding myself getting limited on space. Adding comment labels all over the place takes up even more space and results in the whole block diagram exploding to an often impractical size.

Wouldn't it be nice to be able to do an Excel-type tool-tip, where comments will be hidden until hovered over with the mouse?

 

idea 1.png

 

Instead:

idea 2.PNG

    hover with mouse -> 

idea 3.PNG

4 Comments
elset191
Active Participant
danbrown
Member

I see I'm not the only one! Everyone using different tags & wording so I didn't come across them while checking to see if it had come up before. I like the result of using subvi's like here; I added a property node on the block diagram linked to the vi's description. That way all you have to do is open, type, hit run and save. Of course, the downside is you have to save a separate vi for every comment. 😕

The string constant with the comment saved in the constant description is easier to implement, but the result is a little less polished. Ho hum, maybe NI will implement an integrated version.

SteenSchmidt
Trusted Enthusiast

A Description and Tip... option is available in the context menu for most (if not all?) BD objects, but for some the Tip part is grayed out, and common for all unfortunately is that filling out Tip doesn't enable any tooltip anyway Smiley Indifferent

 

Maybe that feature could just be turned on, it seems most of the code is already in place?

 

/Steen

CLA, CTA, CLED & LabVIEW Champion
JÞB
Knight of NI

Use of the 2012 string constant editor would seem to do just about the same thing.


"Should be" isn't "Is" -Jay