Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

communicate with serial device over ethernet

Greetings,

my aim is to read the data from a smartsensor transmitting information via serial port (RS232)
unfortunatly there were not enough ports so i had to use a interface.
"The MOXA NPort5450 serial device server can conveniently and transparently connect up to four serial devices ta an ethernet." says the manual.
I installed the necessary drivers and application which can see the additional serial ports.
How do I tell LabView to read these ports?

Data flow looks like this:

Sensor -> Moxa Nport (i got its IP) -> Switch -> ethernetport
-
-
-
"Aufklärung ist der Ausgang des Menschen aus seiner selbstverschuldeten Unmündigkeit."
0 Kudos
Message 1 of 4
(5,438 Views)
Hello!

If the Ethernet-COM Adapter shows the new COM Ports in Device Manager and in MAX, you can simply use the VISA functions to access to your new COM ports.
That means you can simply use the RS232 examples in LabVIEW.

If you don't see the new ports in Device Manager and in MAX,  you have to access to your port using TCP/IP.
You have to use the TCP/IP Blocks in LabVIEW and send the commands to the IP Adress of your Adapter. The commands that have to be sended via TCP/IP must be described in the manual of your adapter.
Examples for TCP/IP Programming in LabVIEW are also installed.

Best regards
Ken
0 Kudos
Message 2 of 4
(5,411 Views)
Though i can´t see the new ports in the device manager labview is now able to read the additonal com-ports using the "visa-thing".
There was just a task to do, which was discribed in the manual to solv the problem.
Sorry, but i thought it was kind of plug and play.
-
-
-
"Aufklärung ist der Ausgang des Menschen aus seiner selbstverschuldeten Unmündigkeit."
0 Kudos
Message 3 of 4
(5,407 Views)

Hi, I have the same problem. I want to build communication between several RS232 devices(Mass flow controller) via Ethernet, and I have connect them in this order: Mass flow controller--IOLAN(terminal server which can connect up to 8 serial ports, and convert them to Ethernet connection)-Switch-computer. I can't find new com port via device manager and MAX, so I wrote some program with TCP/IP vi. However, when i send  command through write.vi to serial device, I can't get response from read.vi, and I got error code"56" from write.vi. I am wondering whether there is something wrong between communication of IOLAN and serial devices, because I am sure the connection between IOLAN and computer is right. Please give me some suggestions. Thank you.

0 Kudos
Message 4 of 4
(4,881 Views)