Subject:
|
RE: Displaying info while debugging
|
Newsgroups:
|
lugnet.robotics.rcx.pbforth
|
Date:
|
Tue, 2 Jul 2002 18:23:50 GMT
|
Reply-To:
|
<rhempel@%NoSpam%bmts.com>
|
Viewed:
|
2785 times
|
| |
| |
> In lugnet.robotics.rcx.pbforth, Mario Beaulieu writes:
> > Hi,
> >
> > I would like to be able to show some info on the Terminal Emulator while
> > debugging, but it seems that pbForth "keeps" the info until the program is
> > over. For example:
> >
> > : TEST 100 0 DO I CR . 7 1 0 MOTOR_SET LOOP 7 4 0 MOTOR_SET ;
> >
> > will start the motor a while before the 100 numbers are displayed. Actually,
> > the numbers will appear at about the same time the motor stops. Is there a
> > way I can make it show each number before the program is over?
Mario,
I did some checking and I think the real issue is with the USB driver
from LEGO. The serial tower does not exhibit this behaviour. It has its
own problems, which include falling asleep after 2 seconds of inactivity.
So, as far as I can tell, the USB driver will not let me read data
from its buffer until there is a period of inactivity on the IR channel....
Cheers, Ralph
|
|
Message has 2 Replies: | | Re: Displaying info while debugging
|
| Thanks a lot Ralph, And I'm sure you're right. I tried this: 10000 VALUE CTR : test 100 0 DO I CR . CTR 0 DO LOOP LOOP ; For CTR > 11000, the numbers are displayed one at a time. Below 11000, they're displayed in batch. So, it probably means that (...) (22 years ago, 3-Jul-02, to lugnet.robotics.rcx.pbforth)
| | | Re: Displaying info while debugging
|
| Hi Ralph, I mentionned a while ago (see msg #508) that I have a problem with SAVE-SYSTEM. Could it be the same problem? Could it related to the USB driver and that, while saving the system, there is no period of inactivity and the buffer gets full (...) (22 years ago, 4-Jul-02, to lugnet.robotics.rcx.pbforth)
|
Message is in Reply To:
12 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|