LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

accessing data from another pc

good day,

 

i want to use datasocket to remotely access data running on another pc. i have some ideas on how to access data from a local host but i don't have a clue on how to access a remote data on another pc.

 

if anybody has idea on the issue, plss dont hesistate to share.

 

thanks

 

kaydgreat

0 Kudos
Message 1 of 10
(4,146 Views)

Datasockets will work. Have you looked at the shipping examples?

 

Network published shared variables will also work.

 

TCP/IP will also work. Again, examples ship with LabVIEW.

 

It all depends on the data that you are trying to share, the volume of data, and the frequency at which it needs to be made available.

0 Kudos
Message 2 of 10
(4,138 Views)

yea , thanks for the response. the issue is that i dont have any clue on how to proceed. i have 2 laptops, one acquiring and displaying waveforms, then i want to connect to the main pc with another pc so that i can view the waveform on it. pls if you have a sample program dont hesitate to share.

 

thanks,

0 Kudos
Message 3 of 10
(4,133 Views)

KDGREAT,

 

As smercurio_fc pointed out, the NI Example Finder is the best place to start.  These shipping examples are the most elementary and universal sample programs.

 

It is always best to have somewhat of a background before you start programming.  Below are a few tutorials you will find very useful in developing your application.

 

Basic TCP/IP in LabVIEW

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

 

DataSocket Tutorial

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

 

Using the LabVIEW Shared Variable

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

 

Regards,

 

Alexander M

Applications Engineer

National Instruments

0 Kudos
Message 4 of 10
(4,116 Views)

Thanks for your advice, I came out with the following programs to write and read signals using datasocket but I am still having some challenges:

 

1) when I run the reader vi , I can see the the waveform being generated in the writer vi

2) the vi's are on the same host i.e. the same computer, how can I modify this program so that I can access the waveform being displayed on the host computer on another PC (remote access).

 

anybody with useful information should pls help out.

 

Regards

 

kdgreat

Download All
0 Kudos
Message 5 of 10
(4,101 Views)

Sorry , I need to make a correction.

 

 

The no 1 question is that I can't access the waveform being generated from the writer vi on the reader vi

 

thanks

0 Kudos
Message 6 of 10
(4,098 Views)

sorry

0 Kudos
Message 7 of 10
(4,097 Views)

You change the URL so that instead of "localhost" it has the hostname of the PC you're trying to connect to. The example VI has a textbox on the front panel listing a variety of URLs.

0 Kudos
Message 8 of 10
(4,096 Views)

Did you read enigma's links??? 

 

1)  That's what is supposed to happen.

 

2)  Just change the ServerName from localhost to the other PC's name to read data from it.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 9 of 10
(4,089 Views)

1)  OK, if your code doesn't work, try one of the simple examples.  If that has problems, you must have a PC issue that messes with DataSocket.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 10 of 10
(4,087 Views)