LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi server vs web server

Hi...
I need some help here..I run vi program in computer A and connect computer A serial port to other device. At the same time I run the same program in computer B. I want computer A and B can control the same program. In my program I have to configure com port first. So is it possible that I can configure com port at computer A from computer B? I try to use vi server and web server. But I didn't have any idea how to start using vi server and web server.What is the different between vi server and web server? I already search an example in NI website. But it did not really help me. I really appreciate your help...I urgently need this...
 
Thanks
 
 
   
0 Kudos
Message 1 of 5
(2,795 Views)

Hi gdah,

with vi server you can get the reference of a vi through the network. You can use the "Open Application Reference" function to do it. Another why is to use TCP/IP functions to send commands between both instances of your program. You can also use the ini file to define which IP address has to use which COM port.

Hope it helps.

Mike



Message Edited by MikeS81 on 05-26-2008 09:19 AM
0 Kudos
Message 2 of 5
(2,794 Views)
Hi Mike
 
Mike wrote:You can also use the ini file to define which IP address has to use which COM port.
 
Can you explain more on that. Do yo mind if you give an example...
 
Thanks..
0 Kudos
Message 3 of 5
(2,790 Views)
Hi gdah,
if you build an executable you get an ini file. In this in file you can insert for example:
 
[mysection]
IP=192.168.0.1;COM1
IP=192.168.0.2;COM5
 
Use the "String to IP" and "IP to String" function get the IP from the current pc. Then read the data from the ini file and search for your pc. If you found your ini entry, then set the correct COM Port for this pc.
 
Mike
0 Kudos
Message 4 of 5
(2,786 Views)
Hi Mike,
 
Thanks...
 
0 Kudos
Message 5 of 5
(2,775 Views)