Solved

Telesis TMC420 Extended Protocol

Posted on 2009-05-06
4
1,965 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

739 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