Support Forums
Writing C# program to talk to DT80

Hi

I'm trying to write a program in C#.NET to send and receive data from/to DT80 (Series 2). Has anyone done this? To connect I do this:

string result = axdataTaker1.comConnect();

I'm sure this succeeds ok because result returns

"1@9600,n,8,1,nofc"

Now I try and send the command "test" to the DT80. I do this:

string message = "test" + Environment.NewLine; string result = ""; try { result = axdataTaker1.comSend(ref message); } catch (Exception) { }

I don't think this works because result is the empty string. Any hints or tips as to why result is not returning anything?

Regards,
Doug

Hi I'm trying to write a program in C#.NET to send and receive data from/to DT80 (Series 2). Has anyone done this? To connect I do this: ```` string result = axdataTaker1.comConnect(); ```` I'm sure this succeeds ok because result returns ```` "1@9600,n,8,1,nofc" ```` Now I try and send the command "test" to the DT80. I do this: ```` string message = "test" + Environment.NewLine; string result = ""; try { result = axdataTaker1.comSend(ref message); } catch (Exception) { } ```` I don't think this works because result is the empty string. Any hints or tips as to why result is not returning anything? Regards, Doug

Good morning Doug,

To send commands to the dataTaker is a simple Telnet session. Each line needs to be terminated with a carriage return (ASCII Char #10).

Cheers,
Roger

Good morning Doug, To send commands to the dataTaker is a simple Telnet session. Each line needs to be terminated with a carriage return (ASCII Char #10). Cheers, Roger
49
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft