06-18-2015 07:50 AM
Hi All,
I am having trouble calling a vi and passing parameters to it using ActiveX calls. I used the code he found it on the website ni.com, but there is no reference to how to call vi from tcp network, as \\hostname:14000\application.vi
I try use this code:
Dim lvapp As New LabVIEW.Application
Dim vi As LabVIEW.VirtualInstrument
Dim viPath As String = ""
viPath = "\\hostname:14000"
vi = lvapp.GetVIReference(viPath)
vi.FPWinOpen = True 'show the front panel
vi.Run(True)
i tried viPath = "C:\LabView\MyFolder\Appliction.vi" and work, what is the right syntax???
Thanks!
06-18-2015 08:10 AM
I'm sorry,
I forgot to say that I compiled the labview project as .exe! it's possibile to extract the reference of vi from an exe? example \\hostname:14000\application.exe\application.vi or something???
06-23-2015 10:23 AM
Hi Benemax
can you post the link to the ni.com page where you found the code please?