LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

simply way to make sub vi and call it form main vi

I'm a beginner and have major problems to make a sub vi and call it from main vi. I'm going to do a save dialog where is extra info for my saving and want to call dialog from main vi and after that save info to a file or database. I want that save dialog appears after i press button. I attach sub vi where is no functionality yet.
0 Kudos
Message 1 of 14
(3,465 Views)
The first step is to connect the controls and indicators that you want to pass information to and from your main vi.

You right-click on the icon at the top right corner of the Front Panel and select "Show Connector". Typically put inputs at the left and outputs at the right side of the connector pane. Save it.

Open the main vi. Go to the block diagram. Click on "Select a vi" inside the Functions Palette. And choose the sub vi you prepared. Then wire it up inside your main vi.

-JLV-
0 Kudos
Message 2 of 14
(3,465 Views)
"The first step is to connect the controls and indicators that you want to pass information to and from your main vi.

You right-click on the icon at the top right corner of the Front Panel and select "Show Connector". Typically put inputs at the left and outputs at the right side of the connector pane. Save it."

These things are clear to me, but the creating sub vi isn't clear at all. The sub vi I added to main vi's block diagram doesn't have connector or do I have to make them to sub vi. Save dialog doesn't include any information about main vi it's just additional info for saving.
0 Kudos
Message 3 of 14
(3,465 Views)
see if this swf helps to explain the procedure
Message 4 of 14
(3,465 Views)
WOW...

A movie to show the steps!

Excellent!
Nicely done.

-JLV-
0 Kudos
Message 5 of 14
(3,465 Views)
Thanks JLV 🙂

anything to avoid the real work...
0 Kudos
Message 6 of 14
(3,465 Views)
Thanks this helped me a lot i found the connector and I manage to open my sub.vi from main.vi now I just have to program operations to sub.vi.

and thanks again
0 Kudos
Message 7 of 14
(3,465 Views)
Very very cool!

What did you use to make that spiffy flash?

~j5


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 8 of 14
(3,465 Views)
ViewletBuilder http://www.qarbon.com/

makes screenshots with cursor very easy to do... (much quicker than making in Flash)
0 Kudos
Message 9 of 14
(3,465 Views)
Never heard of it... but it looks pretty good from the web site and your output.
Good thing X-mas is coming:)


2006 Ultimate LabVIEW G-eek.

0 Kudos
Message 10 of 14
(3,269 Views)