LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between two PCs

I have one pc with PCI6013 DAQ card. I need to read the data acquired by PCI6013 from another PC. How can I do it if I don't have ethernet?

Thanks.
0 Kudos
Message 1 of 8
(3,953 Views)
You'll need some sort of physical connection. A serial cable is probably the cheapest but two NIC cards are pretty cheap too. If you go with serial, you'll have to use VISA Write on one pc to send the data and a VISA read on the other to receive it.
0 Kudos
Message 2 of 8
(3,952 Views)
Can I make one PC as a master and another as a slave, so I can send command from master to ask slave send data to serial port?

May I know what NIC card is?

Thanks.
0 Kudos
Message 3 of 8
(3,952 Views)
You can design your software any way you want. You would need a transmit and a receive loop on both the master and slave. I've seen TCP/IP examples of this but I don' remember seeing any serial port ones.

A NIC is a network interface adapter card. They are what give your pc the ability to connect to ethernet network. They can cost less than U$20 and you can add one to each pc to set up your own private little network. You could then use Datasocket, RDA, TCP/IP for data sharing.
0 Kudos
Message 4 of 8
(3,952 Views)
Thanks Dennis.

Sounds NIC is great for my application. I am a newbie for NIC, is that mean sharing data between two PC instead of sending or receiving any command between these two PC?

Thank you.
0 Kudos
Message 5 of 8
(3,952 Views)
Dennis Knutson wrote in news:50650000000500000032C90100-
1079395200000@exchange.ni.com:

> You'll need some sort of physical connection. A serial cable is
> probably the cheapest but two NIC cards are pretty cheap too. If you
> go with serial, you'll have to use VISA Write on one pc to send the
> data and a VISA read on the other to receive it.

If you use two NIC cards (those are just standart network cards, by the
way) you need to hook the two computers together using a crossover network
cable, and not a standard network cable. Alternatively, you can buy a
cheap hub, and plug both computers into the hub with standard cables
(actually, using a hub can solve some funny duplexing problems sometimes)

Scott
0 Kudos
Message 6 of 8
(3,952 Views)
With your pc's on a network, you have a lot more options. You can set the pc with the daq board to use Datasocket and broadcast the data. The other pc acts as a client. Sending and receiving commands is also possible. You can also use VI Server to communicate between the pc's and control one VI from another. RDA is Remote Data Access allows you to use traditional NI-DAQ to control DAQ boards plugged into other pc's on a network. You could even use the Remote Panel feature to publish a VI as a web page and control that through a browser. Without knowing a lot more about your application needs, it's hard to recomend one approach over another. There are shipping examples for all of these, on-line help in LabVIEW and MAX, and
NI Developer Zone articles that might help you decide.
0 Kudos
Message 7 of 8
(3,952 Views)
Thank you so much, Dennis and Scott. I'll try them.
0 Kudos
Message 8 of 8
(3,952 Views)