11-22-2010 12:43 PM
Hello guys,
How can I creat an icon in a specific VI that opens another VI?
And is it possible to remote control from home devices linked in a far away PC? I'll have a static IP. How can I do it?
Thanks again,
Murilo
11-22-2010
01:31 PM
- last edited on
04-27-2025
10:26 PM
by
Content Cleaner
Murilo Altheman wrote:How can I creat an icon in a specific VI that opens another VI
Are you looking to create a subVI? Maybe you should start with a few tutorials.
Murilo Altheman wrote:And is it possible to remote control from home devices linked in a far away PC? I'll have a static IP. How can I do it?
What exactly do you mean by "control"? Do both sides have LabVIEW installed?
11-23-2010 08:15 AM
11-23-2010 08:44 AM
Still not entirely sure I'm following the problem...
Is the icon a desktop icon or one on the front panel of a VI? The first would need a piece of compiled executable code (pick your language, labview if you've got the application builder) that just calls and opens the appropriate VI, in the latter you need to do some 'fancy' things with the application control to open up a second VI running in parallel to the first (unlike a subVI which will stall the first VI until you close it). If the VIs need to interact then it starts getting more complicated.
With the remote commands if you're just talking about simulating the interactions of front panel controls from another computer then the VI Server functionality will be a good place to start looking - there are some excellent tutorials and loads of information already out there.
11-23-2010 09:48 AM
@Murilo Altheman wrote:
No, that's not it! I just need to creat an icon that opens another VI by clicking. I mean, I don't want a SubVI with in's and out's. Just a button to click and open another VI.
A subVI does not need to have inputs and outputs. I think the confusion is with your terminology. An icon is just a graphical element that cannot do anything except please the eye. Now you are suddenly talking about a button. That's not the same!
@Murilo Altheman wrote:
And both computers can have LV installed. But I don't want to remote control a computer by another. I just want to send commands from LV at home to the company.
Again, you need to be more clear. OK, now we know that at home you have a LabVIEW program. You don't define what "the company" is. Is this another LabVIEW program listening for commands? Is this some other program? What does the program do with the commands?
LabVIEW has a rich set of tools to do all this, starting with lowlevel TCP/IP, to web services, to network shared variables, etc. etc. Remote monitoring and control is easy, just tell us in a few more sentences what you want to do exactly.
The biggest problem might be to get your IT people to adjust the company firewall to allow incoming connections on certain ports. How tight is the firewall?