You are here: Products / Hardware / Tracii XL / FAQ / Support
English
Deutsch
¬Social Bookmarks 
digg.comFurlgoogle.comstumbleupon.com
05.03.2004 18:04 Age: 11 Jahre Category: I2c Studio

How do I capture NAKs from Tracii XL and resume program?


I want to keep track of the number of NAKs returned from our test board via the Tracii XL. Currently an exception is thrown and the program exits. I need to be able to detect a NAK, increment a counter, and then return to the program where it left off. I do not want it to exit because I want to know how many NAKs I get after 1000 writes and reads. How do I do this? 

As written in previous postings you have to use the try/catch commands of C++ or C#. You can increment a counter in the catch handler. 

How do I exit the catch without exiting the program? I want to catch the NAK, increment the counter, and then try again. Can I use a goto statement? I am not familiar with object oriented programming. I prefer in-line code like C and assembly. They are much more straight forward. 

As most software is written today using OOP languages, we do not support ANSI C.

I would recommend to have a look into a C++ book for beginners. Maybe Bruce Eckel's free "Thinking in C++" book could be interesting for you:

http://mindview.net/Books/TICPP/ThinkingInCPP2e.html

 


 
www.telos.de