ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP

Hello
I have a problem with TCP (LabVIEW 4.0.1).
I have two computers in network.
I read data from board AT-MIO-16-L9 [computer 1], while a
TCP Listen listens for a connection.
I have a program on computer 2 (Simple data client.vi),
it uses TCP Open Connection to initiate a connection, then reads the
incoming data, and plots it on a chart.
When I stopped Simple data client.vi and start again I cannot
make connection. Is it possible ?

thanx in advance
best regards
Greg
0 Kudos
Message 1 of 6
(4,268 Views)
Hi

To establish a TCP connection with a remote port, a 'TCP Create Listener' followed by a 'TCP Wait on TCP Listener' can be used. However, if the connection is closed with a 'TCP Close Connection', a new connection cannot be established with the same port unless Labview is closed down.
If you would have had a more recent version of labVIEW, there's an example on the web that allows to reconnect to a TCP connection without closing LabVIEW.
I'm still giving you the links:
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/8e52fb6a9c13a4e38625670d005b16c1?OpenDocument
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/c0888cf95e6c19c88625694c0076bde5?OpenDocument

Regards,

Cyril Bouton
Applications Engineer
Nation
al Instruments.
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 2 of 6
(4,270 Views)
Cyril wrote:

> I'm still giving you the links:

[cut]

Thank you very much.

When a connection is established I can read and write data (1D-array)
to the remote application Can I write and read 2D-array ?

best regards,
Greg
0 Kudos
Message 3 of 6
(4,267 Views)
Greg,

Instead of reinventing the wheel here I'm just giving you a link to another discussion that gives a lot of tips on how to do that.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000CB2A0000&ECategory=LabVIEW.LabVIEW+General

Regards,

Cyril Bouton
Applications Engineer
National Instruments
Cyril Bouton
Active LabVIEW Developper
0 Kudos
Message 4 of 6
(4,267 Views)

Hello , i have problems with the conection between my PC and IGW/400 CAN via WLAN.

I dont even know where exactly the problem is? may the problem is the configuration of the IGW/400-CAn or by my tcp.vi.

I try to connect the the IP and port if IGW/400 with the tcp conector, but unfortunatly it dose  not work.

Maybe some body know about this problem.

Anyway best regards and thanx in advance

Kami

0 Kudos
Message 5 of 6
(4,018 Views)
 

Hello , i have problems with the conection between my PC and IGW/400 CAN via WLAN.

I dont even know where exactly the problem is? may the problem is the configuration of the IGW/400-CAn or by my tcp.vi.

I try to connect the the IP and port if IGW/400 with the tcp conector, but unfortunatly it dose  not work.

Maybe some body know about this problem.

Anyway best regards and thanx in advance

Kami

0 Kudos
Message 6 of 6
(4,015 Views)