‎08-05-2010 06:28 PM
Hi,
I currently trying to send an input that I put from computer A to be output in computer B. I read that I need a shared variable for it, and I already set the shared variable. My main problem now is how to establish a connection/communication to the other computer? I tried reading in the forum but got confuse on how to use it. Anyone had a simple method on how I could do it?
Thanks
Ridhwan Ali
Solved! Go to Solution.
‎08-06-2010 01:59 AM
Hi tebu,
1) If your computer A as well as computer B are connected to a lan,then you can use the VI server concepts,such that computer B will be acting as a VI server and computer A will get the data required from computerB.
2)If you are concerned about normal data transfer,you can use tcp/ip vis to send the data from computer A to computer B.
3)If they are not in network,take a cross cable and establish a local lan using computer A and computer B with either of these acting as a server and again using tcp/ip vis to send the data.
Thanks and regards,
srikrishnaNF
‎08-06-2010 01:59 AM
Hi tebu,
1) If your computer A as well as computer B are connected to a lan,then you can use the VI server concepts,such that computer B will be acting as a VI server and computer A will get the data required from computerB.
2)If you are concerned about normal data transfer,you can use tcp/ip vis to send the data from computer A to computer B.
3)If they are not in network,take a cross cable and establish a local lan using computer A and computer B with either of these acting as a server and again using tcp/ip vis to send the data.
Thanks and regards,
srikrishnaNF
‎08-06-2010 02:01 AM
yeap, going to connect them in LAN network. was thinking of using shared variables and NI-PSP.. any tips on how to use it?
‎08-06-2010 02:22 AM
hi tebu,
go through this link....
http://zone.ni.com/devzone/cda/tut/p/id/4679.
thanks and regards,
srikrishnaNF
‎08-06-2010 04:49 AM
had a look at it but it does not show the tutorial on how i could arrange the function correctly to able the connection. do you have any simple example for it?
i just need to figure out the simple step to input 1 variable (eg. value 10) in computer A and get it sent and appear in computer B.
‎08-06-2010 04:54 AM
‎08-06-2010 01:11 PM
had a look at it but it does not show the tutorial on how i could arrange the function correctly to able the connection. do you have any simple example for it?
i just need to figure out the simple step to input 1 variable (eg. value 10) in computer A and get it sent and appear in computer B.
‎08-06-2010 02:39 PM
‎08-06-2010 05:10 PM
Cool! I had a look at the examples and test it. It works.
Here are the steps that I took: (*I had both of my computer connected through a router which I used to connect both of them to the internet, i just plug Ethernet wires from both computer to the router, that's all, no configuration needed)
1) Open Data Server.vi in my 1st computer
2) Open Client Server.vi in my 2nd computer
3) Search for my 1st computer IP address by going to the
Start (at 1st computer) >Run>enter "cmd">type "ipconfig"
4) Search for my 2nd computer IP address by going to the
Start (at 2nd computer)>Run>enter "cmd">type "ipconfig"
5) Ping the 2nd computer from the 1st computer to check if the connection is ok.
Start (at 1st computer) >Run>enter "cmd">type "ping [2nd computer IP Address]"
7) Set the port number in Data Server.vi to any desired number (in my case I just choose 6350)
6) Run Data Server.vi
4) Set the port number in Client Server.vi to match the one in Data Server.vi (in my case 6350)
7) Run Client Server.vi
😎 The waveform should appear in the graph in Client Server.vi
9) SUCCESS!
*now I can change/modify the desired transmitted input to any input I wanted!
Thanks