Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP

Hi
I have two PC with CAN card To get data in CAN Bus.I use ethernet connect two PC.
I Use other PC monitor two PC data transfer.I use Labview example Reader.vi to monitor transfer data.
Why The TCP Listen.vi always in the Listen mode?Two PC connectting is ok.Port select is ok
what is happen?
autocar
0 Kudos
Message 1 of 8
(5,339 Views)
Hey autocar,

The TCP Listen VI waits for other connections to be made, which in this case sounds like other computers.  I would recommend you take a look at the VIs for TCP/IP communication.  If you open the Example Finder (Help » Find Examples) and then search for TCP, you should be able to access some example VIs for TCP/IP communication.  You can run a client and server on one computer or you could open a client on one computer and the server on another.  If you turn on highlight execution (the light bulb on the Block Diagram) you should get a good idea about how these VIs function. 

This sounds more like a LabVIEW question than a CAN question, so in the future you might consider posting in the LabVIEW forums.  Don't worry though I will help you as much as I can.  Thanks!

Repost if you have more questions,
Andy F.


-----------------------------------------------------------------
National Instruments
0 Kudos
Message 2 of 8
(5,320 Views)

Hi Andy F

I know Labview example vi function,I want to  wiretap Two PC transfer data,Two PC IP address set 111,111,001 and 111,111,002,Port=6340,Because I use other PC only connect same Ethernet Hub,How Can I wiretap Two PC transfer data,

I want to debug my Program CAN communication equipment,If you understand which Hareware tool can do this,Please tell me.

autocar

0 Kudos
Message 3 of 8
(5,297 Views)
autocar,

So are you trying to monitor the communication between two VIs that are using the LabVIEW VIs?  If so there is a program that can monitors packets called Ethereal.  This would give you an idea about packet transmission if you install it on one of the two machines you are using.  Are you also trying to debug you NI-CAN program or your NI-CAN hardware connections? 

Please let me know!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 4 of 8
(5,287 Views)

Hi Andy F

I download Ethereal program already. I monitor Our Two PC communication data.

Why I only Read First Communication Two PC Ethernet card address ID,Then I will not captureed any Packet?

How do I set "monitor PC" IP address?

autocar

0 Kudos
Message 5 of 8
(5,250 Views)
autocar,

Are you trying to set the IP address in Ethereal or in LabVIEW.  I am not as familiar with Ethereal, but I would recommend installing it on both computers to track packets if you want to monitor the data on both computers.  If you are having problems in LabVIEW I might suggest posting some code so we can take a look at it.  That might help in determining the error.

Thanks!
Andy F.
-----------------------------------------------------------------
National Instruments
Message 6 of 8
(5,239 Views)

Dear Andy F.
  Thank you Andy F. I find my monitor TCP/IP problem,I use Ethernet Switch connectting Two PC ,then use other PC monitor TCP/IP transfer data,So I can not receive data, I change Ethernet Hub,work Ok.

I want to Use Ping command and set trailer value but Ni Labview No this function,Please help me,I attach Ethereal file ,and picture

Thank you

autocar


 

0 Kudos
Message 7 of 8
(5,151 Views)
autocar,

Are you trying to attach the IP address to your data in LabVIEW or Ethereal?  Or are you trying to set the IP Address?  If you could attach some LabVIEW code that has your problem then it would be easier to help solve the problem.  If you would like to use a command that is similar to the Ping command you enter in the command window you would have to use the System Exec VI.  I would recommend searching help about this VI and checking out an example.  Please let me know if you have any code to share or additional questions.

Thanks!
Andy F.
-----------------------------------------------------------------
National Instruments
0 Kudos
Message 8 of 8
(5,135 Views)