10-11-2021 09:56 AM
I have two simple VIs that I made, using the "Prompt User for Input" as a starting point. When I place them, though, they don't place as icons but instead have the same look of the Express VIs, see picture. Of course I can RC and turn these into icons after I drop them, but I'd rather not do that or make my coworkers do that (these are packaged).
Is there a way to make them place normally, without remaking them?
(I did RC and make the VI names visible)
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
Solved! Go to Solution.
10-11-2021 10:22 AM
Most (all?) Express VIs you can right-click and choose "View as Icon", which gives you a standard size Icon with the Error Line In/Out on the bottom corners (where they belong). There may be a Caption (or "label") on the top of the Icon, but you can banish that by another right-click, choose Visible Items, and uncheck "Caption".
Bob Schor
10-11-2021 10:31 AM - edited 10-11-2021 10:32 AM
Yeah, I know I can do that. What I'm saying is, I'd like the VI to place as an icon automatically when I drop it from the palettes, like any other SubVI.
I guess there is some flag in this VI indicating that it was once an Express VI, and that is why it places that way even after I modified it?
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
10-11-2021 10:33 AM
@Bob_Schor wrote:
Most (all?) Express VIs you can right-click and choose "View as Icon"
It is actually all VI calls have the "View as Icon" option. Express VIs just tend to default with that option off.
10-11-2021 10:37 AM
I do thing it's a flag, but it might not be accessible though the normal properties, maybe the flags property or some other scripting property.
The quickest (and least satisfying I guess) way is to make a new VI and copy the content in it.
10-11-2021 10:46 AM
@FireFist-Redhawk wrote:
What I'm saying is, I'd like the VI to place as an icon automatically when I drop it from the palettes, like any other SubVI.
Basically no not automatically. Frankly you should not be using Express IV's for anything besides the simple tutorials that use them. I know they make it look like Express VI's are how you program LabVIEW, but it's not.
IMHO: The Express VI's are very ridged in their operation and as your programs become more complex you will find that they create more work and confusion then they save.
10-11-2021 10:59 AM
@RTSLVU wrote:
@FireFist-Redhawk wrote:
What I'm saying is, I'd like the VI to place as an icon automatically when I drop it from the palettes, like any other SubVI.
Basically no not automatically. Frankly you should not be using Express IV's for anything besides the simple tutorials that use them. I know they make it look like Express VI's are how you program LabVIEW, but it's not.
IMHO: The Express VI's are very ridged in their operation and as your programs become more complex you will find that they create more work and confusion then they save.
I appreciate the feedback. These VIs in question though are not Express VIs, they are custom VIs made using an Express VI as a starting point. Guess that's probably bad practice too though... I do agree with you about not using Express VIs except in the simplest of situations.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
10-12-2021 03:51 AM - edited 10-12-2021 03:58 AM
@crossrulz wrote:
@Bob_Schor wrote:
Most (all?) Express VIs you can right-click and choose "View as Icon"
It is actually all VI calls have the "View as Icon" option. Express VIs just tend to default with that option off.
But where does it say an express VI is an express VI? Is there a way to convert an express VI to a normal VI and vice versa?
EDIT: flags2 ("bit 25: 1 vi2DefaultGrownView: VI should be grown by default when dropped") is probably the difference, but is there a way to change it?
10-12-2021 06:51 AM
After a while of searching myself, I found the flag I needed to turn off: VI.Expand When Dropped As SubVI. So not quite as buried as I thought it would be. Still, as far as I can tell it's another one of those VI properties that can only be changed by dropping a property node, running with a value written to it, and then deleting it. Don't you love those lol 😆
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
10-12-2021 07:15 AM
You could edit the associated configuration VI so it sets the SubVi to “View as Icon”.