10-27-2011 02:18 AM
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
10-27-2011 08:28 AM
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.
10-27-2011 10:33 AM
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,
10-27-2011 04:07 PM
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
10-28-2011 09:05 AM
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
10-28-2011 09:09 AM
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
10-28-2011 09:10 AM
sorry
10-28-2011 09:11 AM - edited 10-28-2011 09:12 AM
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.
10-28-2011 11:38 AM
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.
10-28-2011 11:41 AM
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.