nightdweller Posted September 15, 2004 Report Share Posted September 15, 2004 I know a tip window pops up for controls & indicators. How can we do this for Structures :question: I'm in the midst debugging some god awful code . It would be nice to mark what each structure does as I go through the code. Hmm... is it possible to replace the existing tip window for structures? Thanx. Quote Link to comment
aledain Posted September 16, 2004 Report Share Posted September 16, 2004 You can set help (RMB, Description and Tip) for anything, including wires and case structures etc, then turn on flyover help (Ctrl-H) to see your comments. Quote Link to comment
nightdweller Posted September 16, 2004 Author Report Share Posted September 16, 2004 You can set help (RMB, Description and Tip) for anything, including wires and case structures etc, then turn on flyover help (Ctrl-H) to see your comments. 1768[/snapback] Alex, What's RMB? I tried turning on help(flyover) after adding a description, but it does not change the default for stuctures(ie while loop). Maybe, I am doing something wrong? Thanx in advance. Quote Link to comment
Michael Aivaliotis Posted September 17, 2004 Report Share Posted September 17, 2004 What's RMB? 1779[/snapback] Right menu Button. Quote Link to comment
aledain Posted September 17, 2004 Report Share Posted September 17, 2004 I tried turning on help(flyover) after adding a description, but it does not change the default for stuctures(ie while loop). 1779[/snapback] It changes the description for that instance of the while loop etc, not the default for all while loops. Note that you can also display a label (just like on a front panel) using the RightMouseButton (RMB) click, for structures and functions (except wires). P.S. You could probably create a default description for a while loop and add this "new" while loop as a code snippet to your user.lib, but that's probably not what you're after. cheers, Alex. Quote Link to comment
nightdweller Posted September 17, 2004 Author Report Share Posted September 17, 2004 Thanx Guys. It changes the description for that instance of the while loop etc, not the default for all while loops. 1791[/snapback] Hmm... You mean I can change the description for any instance of a while loop. This will not show up in the Ctrl-H Window, right? To view the description I must still use RMB. P.S. You could probably create a default description for a while loop and add this "new" while loop as a code snippet to your user.lib, but that's probably not what you're after.cheers, Alex. 1791[/snapback] This is a pretty good idea :thumbup: How would I go about customizing this "new" while loop? I would assume most of these things are password protected. Thanx Again. :beer: Quote Link to comment
aledain Posted September 20, 2004 Report Share Posted September 20, 2004 Thanx Guys.Hmm... You mean I can change the description for any instance of a while loop. This will not show up in the Ctrl-H Window, right? To view the description I must still use RMB. This is a pretty good idea :thumbup: How would I go about customizing this "new" while loop? I would assume most of these things are password protected. Thanx Again. :beer: 1804[/snapback] Create a vi and save to your user.lib directory. From LV choose to edit palettes (under >6, pin the palette, chose the right most button and then select the "EditPalettes" button) and navigate to the User Library palette. RMB and choose Insert to have your VI appear in the palette. While you are there, select "MergeVI" as an option. Save your palettes and back in LV when you drag your new user.lib VI onto the diagram it only adds the code and front panel from your user.lib VI as a snippet, NOT as a subvi. This is a "merged" vi code snippet. Neat ;-) Quote Link to comment
Mike Ashe Posted December 31, 2004 Report Share Posted December 31, 2004 This all sounds like another nifty small utility begging to be coded. Michael Aivaliotis coded up a utility somewhere on LAVA that alternately colors nested loops and structures using scripting. It seems that once you have the references we could also do something to show the structure selected (by highlighting programmatically), then allow us to do the descriptions above in a batch wise fashion in a table or from a single text control on the utility. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.