LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem connecting two PC's on lan

Solved!
Go to solution

@muqz wrote:

Actually I m living in my university hostel and all the PC's here are connected to LAN and now i want to make a connection with one particular computer (which of course has a particular IP) on the network.

 

Do I need some kind of configuration for TCP listener???


Don't even worry about VI server. The only way that could even matter is if you enable it and try to use the same port for another server. Just disable VI Server and forget it even exists.

 

Try another port like 8080.

 

First there may be a firewall running on the PC you are running the server on. Disable that firewall or better enable connections to the port you want to use. There could also be a firewall between the client and server PC that is administered by your university. If that is the case there is probably not a lot you can do except maybe find a port that is not blocked. There are sites on the Internet that will probe a port for you to see if it is accepting connections. If it says the port is open you are good. If it says blocked that doesn't mean much without knowing more about your network topology. There could be and probably is a firewall between the website and your LAN.

 

Go to http://www.grc.com and look for something called ShieldsUP!

 

 

=====================
LabVIEW 2012


Message 11 of 21
(1,318 Views)

ok,i'll try what u just said.hope it works.thanks alot!!!!!

0 Kudos
Message 12 of 21
(1,313 Views)

i disable the firewall settings and it works perfectly fine.thnks 4 help Smiley Happy

0 Kudos
Message 13 of 21
(1,301 Views)

Instead of disabling the firewall you might want to configure it to allow the port you want to use.

=====================
LabVIEW 2012


Message 14 of 21
(1,296 Views)

ok i'll do it.thnks again buddy

0 Kudos
Message 15 of 21
(1,285 Views)

plz tell me that if i want to send 6 sine signals instead of one signal on lan in labview example of simple data client and simple data server then how i'll do it??????

0 Kudos
Message 16 of 21
(1,271 Views)

How are the signals stuctured?  Are they arrays, waveforms, blue wire dynamic data types?  You should be able to flatten to string on one side, send, and unflatten from string on the other side.

Message 17 of 21
(1,268 Views)
Solution
Accepted by topic author muqz

@muqz wrote:

plz tell me that if i want to send 6 sine signals instead of one signal on lan in labview example of simple data client and simple data server then how i'll do it??????


It is basically the same thing, except we have a 2D array.

 

Since you cannot typecast to a 2D array, you need to use the Flatten/unflatten primitives instead of typecast. Te rest of the code can remain the same.

 

By default, the array size is prepended internally when flattening to string, so all you need to do is unflatten to a 2D array and things should fall in place. Try it. As Ravens said, things might need to be modifed depending on the actual datastructures you have. Please attach a simple VI containing your signals.

 

Message 18 of 21
(1,266 Views)

thnks again 4 the quick response.i have to generate 3 phase voltage and 3 phase current waveforms in simple data server.vi example and send it to other pc which is connected to lan  to do some manipulations on simple data client.vi. so what i m asking is that whats the procedure to do this???? Smiley Indifferent

0 Kudos
Message 19 of 21
(1,262 Views)

i m using blue wire dynamic data. on server vi i think i sucessfully flattend data to string and it shows no error.but i dont know how to unflattend it on client side.i use unflatten from string block but its output shows cluster of zero size!!so kindly tell me what should i do?? m attaching both VI for better understanding

Download All
0 Kudos
Message 20 of 21
(1,254 Views)