Jump to content

embedding my own VI in another VI


Recommended Posts

Hello,

i am totally new, however i managed to set up a tcp connection to a server, and receive some data.

That data has to be forwarded to my COM1 Port, which will sent it somewhere else.

I dont want to put all in one VI. Instead i'd like to "include" my tcp-vi in the COM-VI, as an icon, like all the other functions.

i tried to right-click and "choose VI ..." When i load the one VI into the other, it has _no_ in- or outputs.

How can i define the in and outputs of a VI?

As input i want to have a server IP and the port. As output just an integer.

Thanks in advance.

Link to comment

In the upper-right corner of the front panel of the subVI (the one you want to include), right click on the icon and select "show connector"

You can connect inputs and outputs to the regions shown by using the wire tool (click on a square, then on the control you want to connect).

If you need more or less connectors you can adjust the arrangement under "patterns" on the same menu.

There are probably other ways of doing most of this as well.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.