ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling LabVIEW VIs

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!

0 Kudos
Message 1 of 3
(4,973 Views)

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???

0 Kudos
Message 2 of 3
(4,968 Views)

Hi Benemax

 

can you post the link to the ni.com page where you found the code please?

Message 3 of 3
(4,922 Views)