Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I acces a serial port on a remote computer using Labview?

Can I access a com port of a remote computer from my local computer? The idea is to control the RS232 device connected to this com port remotely.
0 Kudos
Message 1 of 8
(6,012 Views)
Yes, this is possible. On the server machine (the one to which the hardware is connected), you must install Remote NI-VISA Server. This is available with VISA 2.6.x and later.

The following document explains it in details how to setup your system.

Remote Instrument Control with NI-VISA

Zvezdana S.
National Instruments
Message 2 of 8
(6,012 Views)
Thanks a lot for your answer! I have updated the two computers. But I still have a problem... According to the "VISA interactive control" installed on the second computer, my first computer (the one with the hardware and the VISA server) is not there or is not allowing any access. I have checked the permissions of the server and everything looks OK. It doesn't seem to be a network problem as I already use NI DAQ RDA server on both computers.

Any idea?
0 Kudos
Message 3 of 8
(6,012 Views)
Make sure you run are running VISA server on the server machine. It is located at Start»Program»National Instruments»VISA.
0 Kudos
Message 4 of 8
(6,012 Views)
I didn't mention it, but of course the visa server is running on the computer with the hardware I want to access...
0 Kudos
Message 5 of 8
(6,012 Views)
As long as both computers are using VISA 2.6 or later, it should work.

In VISA interactive use the query
visa:///?*
to see if you can view the other computer's resources.
0 Kudos
Message 6 of 8
(6,012 Views)
When i use this kind of query with the good ip, I only see "My computer" in the resources list. I've read that you can't use both visa server and DAQ RDA server on the same computer. Is it true? Because DAQ RDA server is already running on both computer for another purpose...
0 Kudos
Message 7 of 8
(6,012 Views)
I talked to NI R&D, and it is DAQ RDA does conflict with VISA Server because they both use the same port. Basically whichever server is started first will work, and the second server will not. It will be fixed in the next version of VISA.
0 Kudos
Message 8 of 8
(6,012 Views)