jpdrolet Posted January 25, 2006 Report Share Posted January 25, 2006 sure, just pass the VI path as command-line argument.<labview version dir>\labview.exe -pref "%l" "VI1_Path" "VI2_Path" "VI3_Path" Yes but that will open the same VIs for all INI files. To open both INI file and project VIs I usually use a shorcut with a specific command line. The file association is not required with this shortcut technique. Quote Link to comment
george seifert Posted January 26, 2006 Report Share Posted January 26, 2006 CTRL A and CTRL D don't work anymore in LV8. I was really bummed when I discovered this. :thumbdown: George Quote Link to comment
Jim Kring Posted January 26, 2006 Report Share Posted January 26, 2006 CTRL A and CTRL D don't work anymore in LV8. I was really bummed when I discovered this. :thumbdown: George LabVIEW 8.0 allows you to (re)assign keys of any menu items. :thumbup: Quote Link to comment
george seifert Posted January 26, 2006 Report Share Posted January 26, 2006 LabVIEW 8.0 allows you to (re)assign keys of any menu items. :thumbup: I saw that, but the first time I looked through the list I couldn't find the Align Items item so I figured there was no way to set it. I just looked again and there it was. Duh. George Quote Link to comment
PeterB Posted March 16, 2006 Report Share Posted March 16, 2006 If you work with a grid on your BD (or FP) then the following may prove handy to know. Do you get frustrated when you want to move things around but in doing so all your lovely straight wires on the BD become crooked again? Well with a single keystroke, this bothersome behaviour can be avoided. Simply hold down the <SHIFT> key before clicking on an object or a selection and move with confidence ! Your movements will be constrained to Left/Right or Up/Down. "Before moving a selection.png" , "After moving a selection - shift unused.png" , "After moving a selection while holding down shift" regards Peter Quote Link to comment
Jim Kring Posted March 16, 2006 Report Share Posted March 16, 2006 If you work with a grid on your BD (or FP) then the following may prove handy to know. Do you get frustrated when you want to move things around but in doing so all your lovely straight wires on the BD become crooked again? Well with a single keystroke, this bothersome behaviour can be avoided.Simply hold down the <SHIFT> key before clicking on an object or a selection and move with confidence ! Your movements will be constrained to Left/Right or Up/Down. "Before moving a selection.png" , "After moving a selection - shift unused.png" , "After moving a selection while holding down shift" regards Peter If only that worked for "nudging" with the arrow keys -- I use the arrow keys so often (for small moves) that the snap to grid feature is too much of an annoyance to use. Quote Link to comment
PeterB Posted March 16, 2006 Report Share Posted March 16, 2006 If only that worked for "nudging" with the arrow keys -- I use the arrow keys so often (for small moves) that the snap to grid feature is too much of an annoyance to use. It does Hold down <SHIFT> while nudging with the arrow keys and it snaps to the grid. regards Peter Quote Link to comment
Jim Kring Posted March 16, 2006 Report Share Posted March 16, 2006 It does Hold down <SHIFT> while nudging with the arrow keys and it snaps to the grid.regards Peter I mean that I don't like that it snaps to grid. Quote Link to comment
Michael Aivaliotis Posted March 22, 2006 Report Share Posted March 22, 2006 OK, so even I can learn a few new tricks... [LV8] By default when you click and drag a block diagram object, you get an outline of the object under you mouse pointer. If you tap the spacebar while you're draging, you will see the actual image of the object under your pointer. Now isn't that cute! Quote Link to comment
PeterB Posted March 22, 2006 Report Share Posted March 22, 2006 OK, so even I can learn a few new tricks... [LV8] By default when you click and drag a block diagram object, you get an outline of the object under you mouse pointer. If you tap the spacebar while you're draging, you will see the actual image of the object under your pointer. Now isn't that cute! There is a non-cosmetic reason for this too. If you are moving an object that is not wired up to anything, by pressing the spacebar and revealing its image again, LV gets ready to automatically wire it up if a type matched source or sink is within the designated number of pixels. regards Peter Quote Link to comment
PeterB Posted March 23, 2006 Report Share Posted March 23, 2006 If you have Automatic Wire Routing enabled (in the BD options) the LV help file says to: Press the <A> key. LabVIEW temporarily disables automatic wire routing for the current wire. but did you also know that by pressing the spacebar while the dotted wire shows will rotate the right angle in the route by 180 degrees ?(works for both auto and manual wire routing options) regards Peter Quote Link to comment
crelf Posted March 23, 2006 Report Share Posted March 23, 2006 If you have Automatic Wire Routing enabled... C'mon Pete - I know that you've got a plethora of more keyboard shortcuts Have you ever thought of putting them all into a new thread? Quote Link to comment
JDave Posted March 23, 2006 Report Share Posted March 23, 2006 This is something I found out by accident. Probably old news to most. If you wire where an existing path already exists, your new wire path takes the place of the old one. Normally I would delete and rewire, or select and nudge, or right click and 'Clean Up Wire'. I was going to include a picture to help explain, but I couldn't figure out how to include anything that wasn't a URL. David And I meant that to be in the 'Tips and Tricks' thread. Showing off my newbie status today... Quote Link to comment
Mike Ashe Posted March 24, 2006 Report Share Posted March 24, 2006 When you do a post you have the option to attach a file, look below the text box on the edit page. Make your image, save to file, then use the browse button on the edit page Like This: This is me, adding this image, of me adding this image, into LAVA (can you say recursive ) Then you'll get the option to add it into your post Like this: Select Add into Post, and voila ! That'll be 5 cents please ... Quote Link to comment
Michael Aivaliotis Posted March 24, 2006 Report Share Posted March 24, 2006 Then you'll get the option to add it into your postLike this: Select Add into Post, and voila ! That'll be 5 cents please ... Actually, you don't need to select "Add into Post". You only need to do that if you want to be fancy and position your image somewhere within your text. Quote Link to comment
PeterB Posted March 24, 2006 Report Share Posted March 24, 2006 C'mon Pete - I know that you've got a plethora of more keyboard shortcuts Have you ever thought of putting them all into a new thread? Nah, 'cause all of the shortcuts are listed in the LV help file in one place anyway. Just type in "keyboard shortcuts" for the index keywords. regards Peter Quote Link to comment
Louis Manfredi Posted March 24, 2006 Report Share Posted March 24, 2006 Nah, 'cause all of the shortcuts are listed in the LV help file in one place anyway. Just type in "keyboard shortcuts" for the index keywords.regards Peter -- Also on a nifty little crib sheet that comes packed in the box with the CD. Regards, Louis Quote Link to comment
JDave Posted March 27, 2006 Report Share Posted March 27, 2006 This is something I found out by accident. Probably old news to most.If you wire where an existing path already exists, your new wire path takes the place of the old one. Normally I would delete and rewire, or select and nudge, or right click and 'Clean Up Wire'. Here is the image then. Thanks for your help! Quote Link to comment
crelf Posted May 13, 2006 Report Share Posted May 13, 2006 Nah, 'cause all of the shortcuts are listed in the LV help file in one place anyway. and for those on the SSP, here's the LabVIEW Quick Reference Guide: Download File:post-181-1147549012.pdf Quote Link to comment
TG Posted June 18, 2006 Report Share Posted June 18, 2006 You can change the color of a block diagram, sequence structure, case structure etc Select the color you want the front panel first then Press CTRL E to bring up the block diagram The tool is available for a color change at least once on any structure you wish. Quote Link to comment
JDave Posted June 19, 2006 Report Share Posted June 19, 2006 You can change the color of a block diagram, sequence structure, case structure etcSelect the color you want the front panel first then Press CTRL E to bring up the block diagram The tool is available for a color change at least once on any structure you wish. You can also use Shift Right-Click to bring up the tool pallete. From there you can select any mouse tool, including painting. This is also useful on the Front Panel, when you need to get the wiring tool back for placing controls in the connector pane. Quote Link to comment
Tim Erickson Posted June 22, 2006 Report Share Posted June 22, 2006 Hold the CTRL-key down when you have the painting tool selected and it changes to the get color tool. Good when you are matching colors in different controls or indicators. Hold the CTRL key down, click on the object you want to match in color, release the CTRL key and click on the object you want to color. Quote Link to comment
LAVA 1.0 Content Posted June 23, 2006 Report Share Posted June 23, 2006 You can change the color of a block diagram, sequence structure, case structure etc. Some purists might complain about colors on the BD, but I do sometimes use an alternating light grey background in heavily nested for or while loops. I also sometimes use a yellow background in a loop or case to remind me of critical points in the code, or cases that should not occur. The other thing I've started doing (artistic license only) is to label my loops, change the background and forground of the label to the dark grey of the loop, Move the label into the inside upper left and use a font that is bold and white. I just like how it looks Quote Link to comment
crelf Posted June 23, 2006 Report Share Posted June 23, 2006 The other thing I've started doing is to label my loops, change the background and forground of the label to the dark grey of the loop, Move the label into the inside upper left and use a font that is bold and white. One of my colleagues did that for a cRIO program he did a few years ago - when I saw his code I thought it was actually a special FPGA loop that indicated prioririews or such (I hadn't done any FPGA at that stage ) - now I use the same technique all the time. I think labelling loops is important to help initiate those who aren't familiar with your coding style and the architectures you use. Quote Link to comment
Jim Kring Posted June 23, 2006 Report Share Posted June 23, 2006 I think labelling loops is important to help initiate those who aren't familiar with your coding style and the architectures you use. I also like to label my For Loops using a For Each syntax that reflects the array elements that I am iterating over. For example: For Each Device For Each Config Section For Each Config Key For Each File This allows one to quickly understand the intent of the loop. I sometimes take it a step further and describe the work that is done inside the For Loop, such as: For Each Device: Initialize Device For Each Config Section: Get Key Names For Each Config Key: Read Key Value For Each File: Get File Date and Delete if Old If there is more work than can be describe in a single statement, I make sure to comment each block of work inside the For Loop. The same sort of thing can be done for While Loops. For example: While TCP connection is valid: Read TCP Data While No EOF Detected: Read Line from File Cheers, 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.