Solved

Telesis TMC420 Extended Protocol

Posted on 2009-05-06
4
1,990 Views
Last Modified: 2013-11-18
I'm currently working on sending data from our database to a TMC420 controller using VB.NET and Telesis Extended Protocol ActiveX. I'm able to poll the controller for info, send data to its pattern and change its pattern. The problem is when I send the data in a for loop -
For i As Integer = 0 To DataRow.Cells.Count - 1
         Me.AxExtendedProtocol1.Send("V", "0" & (i + 1) & DataRow.Cells(i).Value)
Next
It gives an error -
An unexpected response has been recieved from the controller.
Although the data was succesfully sent to the controller (it displays on the screen). Once I put a message box in the for loop the error goes away. I tried using Thread.Sleep() but using this produces the error aswell. I suspect Send() is able to respond without being interupted by the next Send() operation when a message box displays (doe's the message box halt the program allowing previous executions to continue?). While Sleep() suspends it and is unable to recieve a proper response from the controller, does anybody agree with my theory?
Could somebody please help me to get rid of this anoying error message and avoid using a message box for each loop?

Thanks,
Andrew
0
Comment
Question by:drn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Accepted Solution

by:
drn earned 0 total points
ID: 24333571
I sent a question to telesis and they responded saying use SendWithResponse() and it works. SendWithResponse waits till a response is revieved before returning to the program. I originally over looked using this because in the extended protocol docs the "V" has no mention of it returning any response.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question