03-30-2010 11:07 AM
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
Solved! Go to Solution.
03-30-2010 11:10 AM - edited 03-30-2010 11:13 AM
03-30-2010 11:16 AM - edited 03-30-2010 11:17 AM
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
03-30-2010 11:23 AM
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
03-30-2010 11:26 AM
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?
03-30-2010 11:27 AM
Gaurav: Have you seen this article?
03-30-2010 11:27 AM - edited 03-30-2010 11:28 AM
03-30-2010 11:35 AM
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.
03-30-2010 11:41 AM
Can you post the ini file of the application you're trying to connect to?
03-30-2010 11:52 AM
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.