LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass data to a remote exe?

Solved!
Go to solution

Hi every1,

We are doing an application in which we are using 4 PC's. I have a panel(Hardware) connected to one PC. I want to pass my data from hardware to remote PC. I am using "Open Application Ref"  for this. It is working fine. But when I am making an exe it is giving me error.

I have mentioned "Exported vis" & " Machine Access list" in option field.

Can you tell me how I can do this.

Please find Jpeg of my vi. It shows how I am sending data through vi now.

 

Thank you 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 1 of 13
(4,884 Views)
You could also use network queues. These are an extension of standard LabVIEW queues that will work over the network. I would use something other than directly accessing the front panel controls. This is not a very generalized solution especially given that it will be run across the network and with multiple exe's. You can't open references to a control in a separate exe since each will be running in it's own data space. A solution like the network queue or a simple TCP/IP protocol will be more flexible.
Message Edited by Mark Yedinak on 03-30-2010 11:13 AM


Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 2 of 13
(4,879 Views)

If you get an error in "Open VI Reference" try wiring the VI name as a string. The VI should already be in memory since the application is running.

 

If you get an error at "Open Application Ref" make sure you're using the correct port (specified in the ini file of the application) and this port is not in use by LabVIEW (main instance or project).

 

But I agree with Mark that there might be better solutions than VI server.

 

Daniel

Message Edited by dan_u on 03-30-2010 06:17 PM
0 Kudos
Message 3 of 13
(4,874 Views)

Hi, thank you for reply.

The path is right as i mentioned Vi is working fine. but if i run exe "Open Vi Ref" gives out error.

I am not able to set  connection 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 13
(4,869 Views)

I had build that application with TCP IP only. But most of the time it was giving me error as it imposes sequence..that a particular application must run first. I think it is my coding problem...so i turned to open application ref.

Can you tell me solution of this?  

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 5 of 13
(4,864 Views)
If you're talking to a compiled application the VI you're calling will be part of the exe, so the path you use in the screenshot can't be right.
Message Edited by dan_u on 03-30-2010 06:28 PM
0 Kudos
Message 7 of 13
(4,861 Views)

Hi dan_u ,

I know the path in the code should not be used in exe. I have created exe on remote panel where i want to send data. and the code i have posted is on the machine where my panel is connected.But its not even error of path. "Open appliction ref" is not able to set connection with remote PC where my exe is running.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 8 of 13
(4,855 Views)

Can you post the ini file of the application you're trying to connect to?

 

0 Kudos
Message 9 of 13
(4,848 Views)

I have not created any ini file...which file you are talking about?

And now  i am not in the office...its 10.21 pm here...

Tell me which file you want i will post it here tomorrow.  

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 10 of 13
(4,830 Views)