LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP server/client - PXI RT - Windows - Linux

Dear all,

I'm sorry in advance for such a newbie-question, but I could not figure it out with the help of the existing posts here.

My situation: LV 7.1 installed on Win XP and running on the RT target PXI 1031. In this PXI I have the NI PXI 8146 RT module. To this module I have connected a Fluke DMM via GPIB (btw changing to ISA driver instead of PCI was necessary for the 8146 module), all that works OK and I can read the voltage from DMM with no problem.

Now I have an Ethernet switch between the PXI, Win XP box and a Linux laptop. I can ping from Win box and Linux laptop to the PXI and to each other, connection is OK. What I want to do now is to get the voltage from the DMM via PXI into my laptop at least twice per second. The laptop will then be replaced by some fast data acquisition system running (independently from LV) on Linux so now I'm just trying to get the voltage value into Linux...

I tried "Simple Data Client" and "...Server" vi-s but no success yet. My networking skills are at "ping" level... 🙂

Any hint would be appreciated. M.
0 Kudos
Message 1 of 3
(3,299 Views)
Hello miraz,

there is a very powerful library for your exact use case:

http://zone.ni.com/devzone/cda/tut/p/id/4095

Alas, it requires at least LabVIEW 8.2.1.

Maybe the RT FIFO Example which is also available for LabVIEW 7.1 will help you:

http://zone.ni.com/devzone/cda/epd/p/id/1898

Regards,
Johannes

NI Germany 629650
0 Kudos
Message 2 of 3
(3,254 Views)
Hallo Johannes,

thank You very much for Your reply.

Actually, it is all pretty easy 🙂 and I did not need any additional libraries. "TCP Open Connection" and "TCP Write" did the job I wanted, and I am sending the values directly from PXI to the Linux box. The Linux has a fixed IP address and there is a server running and "waiting" for the values on a TCP socket. No problem! 🙂

Many thanks, have a nice day! M.
0 Kudos
Message 3 of 3
(3,225 Views)