?
Solved

Telesis TMC420 Extended Protocol

Posted on 2009-05-06
4
Medium Priority
?
2,103 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
1 Comment
 
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
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…

850 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