Yair Posted October 5, 2006 Report Share Posted October 5, 2006 But i am now convinced to stay with the autotool... Agreed. It's great. Why don't you use an enum for the selection so that your code is auto-documented, as the enum string will end up in the selector case? For one thing, not all case structures use enums. You might use a numeric or a string because you can build that dynamically. For another, Didier refered to listing the main tasks in the case. Doing that would make your enum string too long.This only changes the properties of this particular instance... Thanks, I hadn't noticed that. Quote Link to comment
Aristos Queue Posted October 5, 2006 Report Share Posted October 5, 2006 I don't see this posted, if it is, oh well. Make your coercion dots stand out by making them bright red: Enough folks liked this so red is now the default color in LV8.2. New tip that may not be known: Common frustration: Have a structure node on diagram. Drop a string control inside it and start typing. At some point the string reaches the boundary of the node. If you have autogrow turned on, your structure will start stretching. If you have autogrow turned off, your string will vanish under the edge of the structure. Either way, not desirable. So you click away from the string, resize it, maybe turn on scrollbars, then start typing again. But... from LV7.0 forward... After you drop the string control, type for a while. When the string reaches the max width that you want, hit shift+Enter. Keep typing. The string will now wordwrap at the current width, and grow vertically. When you reach the maximum desired height, hit shift+Enter again. The vertical scrollbar will appear and the string will now scroll instead of growing any further. Sorry... the trick doesn't work on free labels. Perhaps someday... Quote Link to comment
Grampa_of_Oliva_n_Eden Posted October 6, 2006 Report Share Posted October 6, 2006 Enough folks liked this so red is now the default color in LV8.2.New tip that may not be known: Common frustration: Have a structure node on diagram. Drop a string control inside it and start typing. At some point the string reaches the boundary of the node. If you have autogrow turned on, your structure will start stretching. If you have autogrow turned off, your string will vanish under the edge of the structure. Either way, not desirable. So you click away from the string, resize it, maybe turn on scrollbars, then start typing again. But... from LV7.0 forward... After you drop the string control, type for a while. When the string reaches the max width that you want, hit shift+Enter. Keep typing. The string will now wordwrap at the current width, and grow vertically. When you reach the maximum desired height, hit shift+Enter again. The vertical scrollbar will appear and the string will now scroll instead of growing any further. Sorry... the trick doesn't work on free labels. Perhaps someday... Thank you Stephen! You have made at least four developers very happy today. Myself and the first three engineers I talked too. I also added a link so the Nugget Master can find his way here. Ben Quote Link to comment
torekp Posted October 6, 2006 Report Share Posted October 6, 2006 Use Ctrl-Z to undo changes after the mouse button is released. I sometimes find it useful to have more than just the default 8 undo steps (I have it set to 50). To change it go to Tools -> Options... -> Block Diagram and remove the check next to "Use Default" and enter your own value. In LV 8.2, it's under Options... -> Environment. Excellent tip by the way. Quote Link to comment
PaulG. Posted October 9, 2006 Report Share Posted October 9, 2006 I like using the "disable code" structure as a cool little "scratch pad" in my block diagram. If I need something in there I can either drag it into my code or drag copy and paste. It's especially useful when working with mulitple property nodes on mulitple controls and indicators. Quote Link to comment
Jon Sweeney Posted November 10, 2006 Report Share Posted November 10, 2006 If you view the radix of a numeric on a control or indicator you can change the formatting by clicking the radix and selecting a new one (hex/oct/bin/decimal/etc). This comes in really handy sometimes while debugging since you can change the radix on the fly without having to stop everything and start over.Speaking of which, a 'p' is used for SI notation... anybody know what 'p' is for? My guess is that it stands for "prefix", since the symbol used with the number represents a prefix (eg, milli-). Quote Link to comment
PJM_labview Posted November 10, 2006 Report Share Posted November 10, 2006 As we all know, we can run a VI by clicking the run arrow button , Ctrl+R, the stepping arrows buttons or finally the run continously button . I just found out that in LV 8.2 there is another way to directly run the stepping arrows buttons using a keyboard shortcut. There is a direct mapping between CTRL + Direction Keys (Ctrl+down, Ctrl+up and Ctrl+right) and (the stepping arrows buttons). This is pretty cool :thumbup: Note: too bad the Ctrl + Back does not reverse the execution! PJM Quote Link to comment
Grampa_of_Oliva_n_Eden Posted November 10, 2006 Report Share Posted November 10, 2006 As we all know, we can run a VI by clicking the run arrow button , Ctrl+R, the stepping arrows buttons or finally the run continously button . I just found out that in LV 8.2 there is another way to directly run the stepping arrows buttons using a keyboard shortcut. There is a direct mapping between CTRL + Direction Keys (Ctrl+down, Ctrl+up and Ctrl+right) and (the stepping arrows buttons). This is pretty cool :thumbup: Note: too bad the Ctrl + Back does not reverse the execution! PJM Nice tip PJM! Thank you. BTW: p = pico P =Peta I believe... Ben Quote Link to comment
LAVA 1.0 Content Posted November 10, 2006 Report Share Posted November 10, 2006 My guess is that it stands for "prefix", since the symbol used with the number represents a prefix (eg, milli-). http://en.wikipedia.org/wiki/SI_prefix I guess "p"refix might be right I had posted on LAVA a year or two ago that I thought it was for positional; but hey, we learn something new every day Quote Link to comment
Bobillier Posted November 12, 2006 Report Share Posted November 12, 2006 Hi all Have you see that we have a free (i think) graphics library with labview (exist in 7.0, after i don't know) . Look at : National Instruments\Shared\Graphics and run symfac1.exe Regards Eric Quote Link to comment
crelf Posted November 13, 2006 Report Share Posted November 13, 2006 (exist in 7.0, after i don't know) Yup - still there in 8.20. PS: check out "Long-haired freaky people need not apply" under the "Safety" section :laugh: Quote Link to comment
PeterB Posted November 13, 2006 Report Share Posted November 13, 2006 PS: check out "Long-haired freaky people need not apply" under the "Safety" section :laugh: Yes, NI has humourous employees, although having said that I'm assuming that one of them (Colin) probably wasn't laughing when he tried out the experimental diet cola. (hint: Ctrl+F) Cool app. I never knew it was there. Peter Quote Link to comment
crelf Posted November 13, 2006 Report Share Posted November 13, 2006 I'm assuming that one of them (Colin) probably wasn't laughing when he tried out the experimental diet cola. :laugh: He doesn't look well - he needs a higher colour depth Quote Link to comment
David Boyd Posted November 13, 2006 Report Share Posted November 13, 2006 Hi allHave you see that we have a free (i think) graphics library with labview (exist in 7.0, after i don't know) . Look at : National Instruments\Shared\Graphics and run symfac1.exe Regards Eric OK, folks, what am I missing here? I have PDS 8.0 and 8.20 installed on my laptop, and I don't have a 'Graphics' folder under my 'Shared' folder. Does this come with a toolkit I don't have, like Vision? Somewhat puzzled, Dave Quote Link to comment
PJM_labview Posted November 13, 2006 Report Share Posted November 13, 2006 OK, folks, what am I missing here? I have PDS 8.0 and 8.20 installed on my laptop, and I don't have a 'Graphics' folder under my 'Shared' folder. Does this come with a toolkit I don't have, like Vision?... I though it was part of the LabVIEW DSC package, but I may be wrong.PJM Quote Link to comment
Barrie Posted November 13, 2006 Report Share Posted November 13, 2006 I though it was part of the LabVIEW DSC package, but I may be wrong.PJM Can't confirm for sure but you're probably right. I have the DSC package and symfac is installed. B. Quote Link to comment
crelf Posted November 13, 2006 Report Share Posted November 13, 2006 I though it was part of the LabVIEW DSC package, but I may be wrong.PJM I don't think it's part of DSC - I've got the Symbol Factory, but I don't have DSC installed... Are you sure you're looking in the Shared folder under National Instruments, and not one somewhere else (like under LabVIEW)? Quote Link to comment
Omar Mussa Posted November 30, 2006 Report Share Posted November 30, 2006 Here's one that I wouldn't even consider a trick until somebody I was debugging some code with was recently wow'd by it... While executing a VI: If you right click on an Array Index Display of a control, indicator or probe, you can select 'Show Last Element' to go to the last element of the array. In development mode: If you want to look at the last element of an array control or indicator, right click on the Index Display and select Advanced-->Show Last Element (there is no 'Advanced' menu for probes so it always works by just right clicking). Quote Link to comment
Jim Kring Posted November 30, 2006 Report Share Posted November 30, 2006 Here's one that I wouldn't even consider a trick until somebody I was debugging some code with was recently wow'd by it... OK, I'll fess up -- it was me, Omar wow'ed with this trick. I guess I'm starting to fall into the "old dog" learning (not so) new tricks, category. Thanks, Omar! -Jim Quote Link to comment
boone_93 Posted December 5, 2006 Report Share Posted December 5, 2006 Count me in as "wowed" also. This little tip could have saved me a couple thousand mouse clicks over the years Dan Quote Link to comment
Bobillier Posted December 11, 2006 Report Share Posted December 11, 2006 New tips If you hold ctrl key and right click on the right border of flat sequence, the sequence size increase symmetriquely. In fact it's not specific of flat, if do that on all dots borders of structure you increase size (up and low in vertical direction,right and left in horizontal and in the corner in the both direction).You must have something in structure Eric Quote Link to comment
Michael Aivaliotis Posted January 9, 2007 Report Share Posted January 9, 2007 You can configure properties in XControls so they appear nested when selecting them from a right-click. See here. Quote Link to comment
MartinD Posted August 2, 2007 Report Share Posted August 2, 2007 Hi all, When I want to test a bit of the diagram in isolation: I select it, then <Ctrl> + C, N, E, V to paste into a new VI diagram (just a handy combination). Guess someone has already mentioned <shift> + Enter for adding a new entry in a enum after the current one. Bye for now. -Martin Quote Link to comment
Michael Aivaliotis Posted September 17, 2007 Report Share Posted September 17, 2007 Admin Note: This topic is now closed. The content in this topic is currently being moved here. if you want to add to Tips or Tricks please contribute the the new Tips and tricks wiki page. Thank You. 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.