05-29-2013 09:25 AM - edited 05-29-2013 09:30 AM
For the "UDP Open", I set the input "port" to "0" to let the system choosing a port. For the "UDP Write", I use a fixed port (50001)
For "TCP Open" I use (50000) for "remote port" input and I didn't plug the "local port" input (to let the system choosing a port)
05-29-2013 10:44 AM
The client and the server must have the same port number.
Try with the number 6342.
Aurélien Corbin
National Instruments France
05-29-2013 10:47 AM
OK, thanks, I'll try !
05-29-2013 11:05 AM
I tried and it doesn't work.
But I don't understand why local port and remote port needs to be the same ?
Also, I couldn't try with number 6342 because my remote board is configured to work with port 50000, so I used 50000 as local port ; so both are same.
Is there a special thing with port 6342 ?
05-29-2013 11:10 AM
Could you enclosed your LabView code?
Aurélien Corbin
National Instruments France
05-29-2013 11:17 AM
I simplified a lot what I'm doing but everything regarding the TCP is here.
05-29-2013 11:25 AM
it's the client part you send me. thanks
Does the code in the server part use Labview?
If yes, do you have it?
Aurélien Corbin
National Instruments France
05-30-2013 03:17 AM
The server part isn't using Labview, its coded in C.
My code is in a Versitand Custom Device. If I run the custom device on localhost (my windows laptop which has only one ethernet port), everything is fine and the Custom Device is able to communicate thourgh TCP. The problem only occurs when the Custom Device is running on the RT Target (because there are two ethernet port I guess).
05-30-2013 07:04 AM
Hi Lboucher!
Have you ever try to inverse yours Ethernet interface?
For example: Eth1 = 192.168.x.x
Eth2= 10.0.x.x
Best regards
Aurélien Corbin
National Instruments France
05-30-2013 07:39 AM
I tried to set the 2nd port as principal (without changing IP) but after that, the PXI is no more visible on MAX (Measurement & Automation Explorer) => I can't upload my Custom Device nor controlling Veristand Channels.
We have multiple PXI and we have the same problem on all.