LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI Server AND executables

I have two VIs on differnt PCs communicating by VI server. The server runs the remote VI, inserts values into two controls, and then retrieves the values from two indicators. This works fine. When I build the VIs into EXEs it doesn't work. I have read that two differnt ports must be used, but this isn't entirely clear. My server VI(exe) uses an "Open Application Reference" function allowing me to call the client on port 3364 rather than the default 3363, but the client VI has no VI server functions, all it does is take an SCXI measurement and expose the reading - is the "2nd" port implied (i.e. the default) or do I need to explicitely add VI-server functions (to which VI) to get this working? And which machine do I redefine the "VI Server: TCP/IP" value to port 3363, the client or the server? Is there an application note that goes more into how to configure two EXEs for VI Server functionality?

thanx for your time.
lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 1 of 6
(3,623 Views)
You define the VI Server port in the INI file associated with the executable. There is in fact an app note to help you!

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/92aa97aeb10bd479862567c90071b54d?OpenDocument

Dan Press
PrimeTest Corp.
www.primetest.com
0 Kudos
Message 2 of 6
(3,618 Views)
The executables will use the same default port for the VI server as the
development environment unless the port is changed. Thus, if the
development environment, or other LabVIEW executables, are running on the
same computer, there will be a conflict. On the executable to be remotely
controlled, under the Tools>Options menu, set the VI Server:Configuration
for TCP/IP protocol and enter the port number wired to the Open Application
Reference function in the calling vi. Under VI Server:TCP/IP Access, enter
the IP address of the calling computer. Under VI Server:Exported VIs, enter
* for all vi's or the name of the controlled vi. Now stop the executable
and look for the .ini file that shares the name of the executable. It
should have your VI Server settings saved. All remotely controlled
environments, whether development or run-time, that are on same computer
need a unique VI Server port number set in the Options menu to avoid a
conflict.

"lmd2" <x@no.email> wrote in message news:173467@exchange.ni.com...
> I have two VIs on differnt PCs communicating by VI server. The server runs
the remote VI, inserts values into two controls, and then retrieves the
values from two indicators. This works fine. When I build the VIs into EXEs
it doesn't work. I have read that two differnt ports must be used, but this
isn't entirely clear. My server VI(exe) uses an "Open Application Reference"
function allowing me to call the client on port 3364 rather than the default
3363, but the client VI has no VI server functions, all it does is take an
SCXI measurement and expose the reading - is the "2nd" port implied (i.e.
the default) or do I need to explicitely add VI-server functions (to which
VI) to get this working? And which machine do I redefine the "VI Server:
TCP/IP" value to port 3363, the client or the server? Is there an
application note that goes more into how to configure two EXEs for VI Server
functionality?<br><br>thanx for your time.<br>lmd2


Message 3 of 6
(3,615 Views)
Thanx
I had gone to Tools>Options and set my configuration BUT I had done that on the server machine, not the client machine. It wasn't clear in the app note (or maybe its just me) anyway,have it working now - thanx again
-lmd2
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
larry@aleconsultants.com
0 Kudos
Message 4 of 6
(3,593 Views)

I have a similar question here.

My system has two computers which are host computer and a client. The client views and controls an application runing on the host. I need another vi running on the client to remotely configure the application's web server setting, such as Web Server:Configuration and Web Server: Browser Access and keep the application running at same time.

Can I use a VI Server to implement that and how can I set up the port number both for host PC and client PC, as well as web server and vi server's port?

Thanks for your reply.

 

 

0 Kudos
Message 5 of 6
(3,385 Views)
Sorry, I didn't give you the right picture of my system in the last post.
 
Actually, My system is that a host pc running an application, a client can view and control it remotely. The third PC has another vi to remotely configure the Web Server configuration of the application which is running on the host PC.
So the host PC as a web server to be viewed and controlled by the client and also as a VI server to be controlled by the third PC.
 
My questions are: 1. can Vi server implent that and what Application Property could used to do that?
                              2. How can I set the port number of the host PC, should VI server port and web server port be same?
 
Thanks.
 
 
0 Kudos
Message 6 of 6
(3,377 Views)