Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read data over tcp/ip using labview

Hi,

 

I am trying to read the data from a 6-axis load cell (ATI network force transducer). I am using the example program Simple data client.vi . I know the IP addr of the instrument but am not sure what is meant by port addr. When I try and run the program it throws me the error 63. Can anyone kindly help me out of this situation.

 

Also, I found one program in the example section in ni.com, real time tcp/ip read and save data but it is a very earlier version (5.1). It doesn't open on my machine 8.5. It would be great if any example program to read tcp/ip and store data is available.

 

Thanks.

 

Sasi.

0 Kudos
Message 1 of 7
(9,709 Views)

Hi Sasidhar,

 

Could you please elaborate a little more on your setup? Is your instrument connected to a router or directly to your computer via a crossover cable? How are you using LabVIEW to faciliate the TCP/IP communication? What does the error say when it appears? Where do you want to store the data you read?

 

Also take a look at the Using LabVIEW with TCP/IP and UDP Help article. That may help you get started.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support 

0 Kudos
Message 2 of 7
(9,690 Views)

The NetFT has been assigned a IP addr. and is DHCP enabled, So I guess it is acting like a standalone machine on the n/w.

 

I tried using the example program simple data server and simple data client.vi 

 

The error says: "Error 63 occurred at TCP Open Connection in Simple Data Client.vi"

                        Possible reason(s): LabVIEW-  Serial port receive buffer overflow.

                        

 

Is there something I am missing in the connection.

 

Thanks.

 

0 Kudos
Message 3 of 7
(9,680 Views)

Hi Sasi

 

What port address numbers have you entered in? These should be the same on the client and server sides. Eg. 5050. Different port numbers on either side will give you this error. Let me know if this helps or you still getting the error

 

Cheers

0 Kudos
Message 4 of 7
(9,672 Views)

Hi Sasidhar,

 

How exactly are you using the Simple Data Server.vi and Simple Data Client.vi examples? Are they being run on the same computer? Have you made any modifications to these examples? Would there be any firewall issues? What operating system and LabVIEW version are you using?

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 5 of 7
(9,645 Views)

Hi Aaron,

 

I am running the data server and data client in this order on the same machine. 

 

I have disabled the firewall.

 

I have not made any modifications to the programs. I just enter in my instruments IP addr. Also Port # is the default which appears when the program opens.

 

I use LabVIEW 8.5

 

P.S: I happend to get hold of a LabVIEW DAQFT library in ATI's website, however that is for the normal force transducer. I called up ATI support n asked if they have a LabVIEW library for Network force Xducer. They told to confirm from NI. I am attaching that library for your kind ref.

 

Thanks.


Sasi.

0 Kudos
Message 6 of 7
(9,636 Views)

Hi Sasidhar,

 

The IP address control refers to the IP address of the machine that is running the Simple Data Server.vi, so if you are running both of these on the same machine, the IP address needs to be set to the machine's IP address or as "localhost" (without the quotations marks). You should also make sure that under Tools»Options...»VI Server: Configuration, the TCP/IP checkbox is checked.

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 7 of 7
(9,627 Views)