03-06-2006 10:45 AM
03-06-2006 11:02 AM - edited 03-06-2006 11:02 AM
Good info!
One thing I missed when starting out programming in LabVIEW
is that anything outside of your border is transparent, so if you want to make
a VI with a custom-sized icon (say something like the triangle of the +
primitive), you can just create the icon with a smaller border. This is useful for really small
Message Edited by Travis M. on 03-06-2006 11:03 AM
03-06-2006 12:13 PM
Is there a way to specify a default connector pane size in LV 8.0 other than the 4x2x2x4?
03-06-2006 12:40 PM
many thanks to the style upgrade on connectors in LV8
I sure like this connector. It has enough pins to connect a lot of parameters, and still is easy to select with the mouse.
The next one in the line already has too many connections to remember let alone the two at the lower left corner of patterns.
If you need more than 12 connections, yu should stop and rethink what you should bundle in a typedef!
(maybe some genius also connects the errorin and errorut to the correct plug!
03-06-2006 01:23 PM - edited 03-06-2006 01:23 PM
Heh, I figured when I wrote this nugget that somebody would ask about changing the default con pane. Yes, it's possible, but undocumented. Consider this post your documentation. You can add a line to your LabVIEW INI file that says the following:
defaultConPane=[number]
Where [number] is the numeric identifier of the connector pane you wish to use. How do you find out this number, you ask? Simple...run the VI I've attached to this post (saved in 8.0 format). So, as an example, if you wanted all new VIs to have the 5x3x3x5 pattern instead of 4x2x2x4, you would put defaultConPane=4833 in your LabVIEW INI file.
Oh, and if, for whatever reason, you prefer the LabVIEW 7.x and earlier behavior, where the pattern is autoselected to match the number of front panel controls/indicators, you can use defaultConPane=-1.
Hope this helps,
-D
Message Edited by Darren on 03-06-2006 01:23 PM
03-06-2006 02:40 PM
Hi Darren,
Nice, thanks! That's easier than selecting/deleting everything except the default border.
Seems appropriate to mention that icons can be copied/pasted too (ctrl-C, ctrlV.)
Cheers.
03-06-2006 02:43 PM
04-21-2006 03:36 AM
04-21-2006 09:34 AM
Thanks a lot, David...you stole one of my future nugget ideas! 😛
Seriously though, the file dragging into the icon is indeed a nifty feature. We use it internally at NI all the time whenever we get icon image files from our "icon designer" for our new VIs.
-D
04-21-2006 10:22 AM
"icon designer" ?
Wow! Now there is a job for you. Just draw pictures and the code does not even have to run.
Ben