02-02-2001 11:30 AM
02-02-2001 03:25 PM
01-31-2007 03:57 PM
For some reason that link is not working for me...
I am trying to learn Measurement Studio (I believe we have 7.1) and I am using VB.Net 2003...
I am wanting to set up a very simple send/receive (a send textbox, send button, receive lable, and receive button) program using the datasocket over a LAN. I have the same program running on both computer, with the datasocket server on the computer where I have the target/source for the data. I have already set the URL (for the main computer it is dstp:\\localhost\data), and I have already used the DataSocket Server Manager to set the data item ("data") to allow multiple writers. But it is not working. If I "send" the data from one computer, the datasocket server acknowledges it, but I cannot receive the data from the other computer. I can only receive data that has been sent from the same computer... Are there any examples anywhere of how to do this? I checked on my harddrive, and the example there is useless for this type of problem...
Thank you!!!!
02-02-2007 09:47 AM
02-02-2007 01:46 PM
Yes... the server on computer A sees the writer on computer A and the writer and the reader on computer B (all three)... but the reader on computer B only gets information from the writer on computer B... nothing from computer A... I've triple-checked the URL, and it all seems to be correct... Thank you again!
Marilyn
02-05-2007 03:38 PM
02-06-2007 08:43 AM
I got the example program to run over the network the way Jon mentioned, but now I am trying to figure out how it works, and send text over Datasocket, not just Double or DateTime... Like send the text in sendTextBox when I hit sendButton, and the on the reader, show the text in a label when I hit receiveButton or something...
02-06-2007 09:10 AM
02-07-2007 01:51 PM
Ok, I started writing the program, and set it up exactly like the example, but in my program, when I add the thing from the example of
dataSocket.Data.Attributes.Add(.........)
I get this error message:
"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll
Additional information:
The value or attribute cannot be set because the CWData object is read only."
02-08-2007 07:36 AM
Got it... I had it set programatically to accessmode.write, but apparently you have to set it in the properties window too...
Thanks!