LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

redirect a com port to tcp/ip

Does anyone know if it's possible to re-direct a com port to an ethernet data socket in labview?  so I could use tcp/ip to connect to it?

 

thanks

0 Kudos
Message 1 of 14
(4,753 Views)

it is possible but you must write the redirecting code.

Nothing existe to do it automaticly

 

Regard's

EricC

Ingénieur d'Application / Développeur LabVIEW Certifié (CLD)
Application Engineer / LabVIEW Certified Developer (CLD)
0 Kudos
Message 2 of 14
(4,752 Views)

is it possible with labview? do you know how I might approach it if it is? 

0 Kudos
Message 3 of 14
(4,748 Views)

The approch is relativy easy

 

1)

open the serial port

open a tcpip connexion

 

2) in a loop :

 

2a) for all bytes at serail port send it on tcpip

if needed add some speific information

(eg : conversion between modbus serial to modbus tcpip)

 

2b) for all bytes incomming by tcp/ip send it to the serial port

 

3) if no connexion are opened, do nothing

 

 

of course you must understand the tcp/ip connexion. So you can make a litle test by a server that send a text to a client and vice-versa.

You have a lot of example in LV.

 

regard's

EricC

 

Ingénieur d'Application / Développeur LabVIEW Certifié (CLD)
Application Engineer / LabVIEW Certified Developer (CLD)
0 Kudos
Message 4 of 14
(4,745 Views)

great, thanks for the help

0 Kudos
Message 5 of 14
(4,738 Views)

NI-VISA supports both serial and TCP/IP. Just try changing the resource name.

0 Kudos
Message 6 of 14
(4,734 Views)

I need few hints how to communicate with COM port on another computer (slow mini ITX on home network) with installed LabView7.1 and Visa 3.0. It must be MAX installed on remote computer?

I don’t want to install too much SW on remote comp. On primary computer are LabView2010 and Visa 5.2

0 Kudos
Message 7 of 14
(4,432 Views)
You've hijacked an old and unrelated thread. You should have started a new one.

I don't understand why you would want to use a serial connection between 2 pcs. An a Ethernet connection would be faster and simpler. In any case, you don't need any other software installed. The serial examples that come with LabVIEW are enough to get you started.

0 Kudos
Message 8 of 14
(4,414 Views)

I want to go through ethernet to COM port on another computer.

0 Kudos
Message 9 of 14
(4,383 Views)

@Oldi wrote:

I want to go through ethernet to COM port on another computer.


That sentence does not make a lot of sense. Can you describe in more detail how you want to connect these two?

Are you looking for an ethernet to serial converter?

0 Kudos
Message 10 of 14
(4,371 Views)