LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP reading port

Hello,
 
PROJECT:
talk / listen to two different devices that can be connected to by a static IP with separate port number for each.  I need to actively communicate (send commands, listen for responses varying in length), while just listening to another.
 
So far, I'm able to monitor the output of one of the devices by using the receive loop portion of the 'TCP Communicator - Passive.vi'.  This works perfects, the incoming signals are echoed to the screen, where everything is visble.
 
Secondly, I'm trying to run 'TCP Communicator - Active.vi' to speak / listen to the other device.  Here are some of the issues that I'm finding.
 
PROBLEMS:
I've tried to establish one line of communication before I attempt to get both working.  I started to try to do the same as before (receive incoming data).  Instead of a continuous stream of data that is displayed to the screen, the screen will stay blank until the program sends a parital message.  Here are the two messages that I was attempting to receive from the devices (with the exception of the line indicators).
 
working:
00 : $GPGSV,3,2,12,01,,,,02,,,,04,,,,05,,,*79
01 : $GPGSV,3,3,12,06,,,,14,,,,17,,,,18,,,*76
02 : $PMGNST,05.12,0,F,-88,00.0,+02964,23*41
 
not working:
00 :  R    97   100   105   111   32   83   116   97   114   116   101   100 
01:
02 :   i    0   95   28   92   198   196   23   3   158   242   124   69   188   4   13   0   35   113   0   0   0   0   0   0   0   0   0   0   110   107   222   39   19   201   196   226   113   56   156   79   39   147   137   196   226   121   60   158   78   39   19   137   196   226   113   52   156   78   39   19   137   228   226   113   56   156   77   39   19   201   164   242   121   52   156   78   39   19   137   196   226   113   56   158   4   23   1   117   0   22   0   248   0   22   0   67   0 

In order to test the receiving capabilities of the LabVIEW app, I put both devices into a transmit mode, then test individually.  I've looked over the help menus for each TCPlisten, TCPread, TCPwrite, and can't seem to configure these properly, so that the second message is received correctly.
 
 
I'm pretty sure these sample programs will be enough to establish the communication I'm looking for, but again, I just need a few pointers to get it it to work.  Ideas, advice?
 
Thanks,
0 Kudos
Message 1 of 2
(2,780 Views)
Hi Systems_e,
 
Here is another link you could check out to get a feel for some TCP/IP architectures.
 
 
Regards,
 
Steve
0 Kudos
Message 2 of 2
(2,753 Views)