Sitemap

Amicuk Programming Answers

Read/write problem with Datasockets.

-0001-11-30   Views:0

Advertisement

Hi, I'm a newcomer to Labview, and I'm having a problem with Datasockets. When trying to create a 'Publish & Subscribe' socket between two machines it only works on one, the one whose dstp address is the local machine, the other being incapable of wr

Hi, I'm a newcomer to Labview, and I'm having a problem with Datasockets. When trying to create a 'Publish & Subscribe' socket between two machines it only works on one, the one whose dstp address is the local machine, the other being incapable of writing to this 'host' and displaying red LEDs, although it is reading from the host. Also I've only managed to set up these read/write connections using the right-click options, how is it done programatically? Any clarification on the issue (whether directly connected or not :-) would be appreciated. Many thanks,
Tom

The replay answer
Advertisement
Hi Lector!
This is normal behavior for DataSocket. You want to run a DataSocket server on both machines. Although you can SUBSCRIBE to a DS server anywhere on the network, you can only publish to your local server. We do a LOT of Datasocket work here, and this has never been a problem. It's a real security bonus, as well.
It's a good idea to split all your read and write functions. Although some front panel objects (knobs, particularly) can be controls and indicators simultaneaously, it's good practice, for a number of reasons, to NOT use both functions. I build "dummy" front panels for all my VI's which I distribute to all my colleagues who need to work with a remote instrument.
You cannot really appreciate DataSocket, till you've tried to rem
otely control something with PC Anywhere over a slow network! A bit of practice, and you'll wonder how you ever did anything without DataSocket. I'd be glad to work with you on any particulars. Good Luck!
Eric
Eric P. Nichols
P.O. Box 56235
North Pole, AK 99705

Go to See the other 4 answers

Read/write problem with Datasockets.

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I'm a newcomer to Labview, and I'm having a problem with Datasockets. When trying to create a 'Publish & Subscribe' socket between two machines it only works on one, the one whose dstp address is the local machine, the other being incapable of wr[More]

Problem with Datasocket

Category:DefaultRelease time:-0001-11-30Views:130

While transfering data using datasocket it showing an error 1182(Error in parsing DataSocket URL). What is the reason for this error. After execution data socket server is shoeing information about datatransfer(ie. no of packet received, no of packet[More]

Datasocket - OPC Problem

Category:DefaultRelease time:-0001-11-30Views:130

Hello I have a problem with Datasocket, when I try to read from the "NI OPC Servers", I can't. But, if I execute the program with the option "Highlight Execution", there are not problems. I've already tried to put a "Wait" be[More]

Labview for Linux. Datasocket problem

Category:DefaultRelease time:-0001-11-30Views:130

Hello everybody, I have a problem using datasocket connections in Labview for Linux. The problem is the starting of the connection, it's too slow. It takes around 3 or 4 seconds each connection. We are working with a lot of connections (one per Tag i[More]

Cluster and DataSocket

Category:DefaultRelease time:-0001-11-30Views:130

Hi there, I´ve a problem with DataSocket and Clusters containing several variables (Strings, boolean Array and Numerics) . One PC aquires data (DataSocket server). The other PC connects as client to the DS server and indicates the data. The problem i[More]

OPC with datasocket/itools

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a problem with Datasocket and Dasylab 8.0 when using OPC to talk to Eurotherm PID controllers using the Eurotherm OPC server.  Dasylab sends out a 0 when the worksheet is first run and then the correct variable value. This causes problems[More]

Error 42 : Datasocket Read Function

Category:DefaultRelease time:-0001-11-30Views:130

Hello, I have a problem about DataSocket Read Function . I want to read some data from OPC server. I read data and its value 100  as seen in picture dOPCexplorer . But when I give a start Labview .exe as seen Santral Veri Kayıt.vi, I get error 42 abo[More]

DataSocket+OPC+Siemens=can't add item.

Category:DefaultRelease time:-0001-11-30Views:130

I'm working on different OPC servers and I'm able to connect to most of them without a problem (using DataSockets as well as OPC Data Access Automation Interface v.2.02). So, my DataSocket example works fine for National Instruments OPC servers,and I[More]

Why the speaker cannot play rhe recived wave file from data socket?

Category:DefaultRelease time:-0001-11-30Views:130

hi, i have problem with datasocket when reading a sound file recieved from another computer,at the reciever side we have a waveform at the input of the sowrite module but nothing plays from speaker. thanks in advance banner,Hello! I am facing a simil[More]

Does call to ptsname() cause memory leak?

Category:DefaultRelease time:-0001-11-30Views:130

Purify signalled that the call to ptsname() is a memory leak. ptsname() returns a char* and apparently is doing this on the heap even though the man page says it is a static data area. My question is whether we need to do a free() on the return from[More]

Why can't I read what I have written to the data socket server?

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have a problem with DataSocket: I open a socket and in a cycle I read from the socket and write a boolean "TRUE" to the socket. But reading from the socket I always get a "FALSE" value back. Monitoring the socket from a second VI[More]

Hot
Dear Experts I am using FM 'EPS_GET_DIRECTORY_LISTING ' to get the list of files in application server directory. The FM worked very well for a few days. However, from last week it is throwing an expection "READ_DIRECTORY_FAILED" although there [More]
I have been using the came credit card with iTunes for 3-4 years. All of a sudden I was being asked to verify the payment method.  I thought it was because I got a new iPhone5 this weekend and it needed the verification because the account was being [More]
Hi Everyone, I have a issue with my Content Server. Here is a brief description of the problem i am facing. I am uploading a Powerpoint file(pptx) with all pages having some animations. The file size is 5.27 MB. It properly checks-in the server. In t [More]
We're using Delphi 2005 (version 9) with orpheous. When we use the Object Spy in HP UFT, a generic name is shown instead of the actual delphi name. For example, our Report Screen would be shown as "DelphiWindow" and additional screens will be sh [More]
Help, when my sister updated her iPhoto on Friday the update took a long time (spinning beach ball) then when it was complete it appears as if my library is gone. Well, not completely, out of 3000+ photos, the library now only displays 770 thumbnails [More]
Initially, my nokia 2690 was able to stream all of videos on youtube and other websites. But a few days earlier, it has started giving an error message "File format not supported" for almost all videos while streaming. I don't think that there m [More]
I have two accounts ant I want them together so I can have all my apps I have downloaded. Can someone explain how I switch over when in the app store. ThxYou can't currently combine accounts or transfer/copy content from one account to another, conte [More]
Hello, I am trying to upload an html email campaign i created onto Godaddy email campaign marketing.  But it's not coming up completely.  It gave me an error that it has CSS script, the only thing I did was use a jpeg and create a Hotspot over it to [More]
Hello I have just recieved my new E63 today, and it is all going swimingly- the phone can make phone calls, use the internet, recieve texts, however I CANNOT SEND TEXTS. I have endlessly tried to configure the texts, changing the message centre etc., [More]
Can anyone point me in the right direction for a script that will print out my email & attachments for me? Here's my situation. I work for a newspaper and my boss requires that we print out three times a day all ads that are sent to our Sales Manager [More]