PDA

View Full Version : NMITerm Freezing problem.


Serac
10-27-05, 06:36 AM
I just started to try and learn to use IsoPodX Controller with isomax v0.82.

I tested the GP2D12 linearizer isomax example program and pasted it to the NMITerm window.

The problem is that it does paste the example code to the window:

IsoMax V0.82
: SENSOR ADC1 ANALOGIN 8 / ; EEWORD OK
: FDIST S>F FNEGATE
555.4619E0 F/ FEXP 42.1806E0 F* 4.6301E0 F+ ; EEWORD OK
: TEST BEGIN SENSOR FDIST F. CR 10000 0 DO LOOP ?TERMINAL UNTIL ; EEWORD

but makes one white space after the last EEWORD and freezes there.

After that i tested to define new word like:

: TEST 1 2 + . ; OK
TEST 3 OK

and use TEST word. It worked fine and returned number 3.

Then i tested to put the TEST Word in to Flash memory:

: TEST 1 2 + . ; EEWORD OK
TEST

but when i use TEST word it returns one white space at the end of TEST and just freezes.

If i reset the IsoPod it gets over the freezing but freezes again when i use the TEST word...

If i power down IsoPodX the TEST word is gone so it has not saved anything to flash.

I wanted to know if i am just being stupid and doing something wrong or is there something wrong with the NMITerm terminal program.



thanks in advance,


Lauri Alonen

nmitech
10-27-05, 10:39 AM
The problem is that it does paste the example code to the window:

IsoMax V0.82
: SENSOR ADC1 ANALOGIN 8 / ; EEWORD OK
: FDIST S>F FNEGATE
555.4619E0 F/ FEXP 42.1806E0 F* 4.6301E0 F+ ; EEWORD OK
: TEST BEGIN SENSOR FDIST F. CR 10000 0 DO LOOP ?TERMINAL UNTIL ; EEWORD

but makes one white space after the last EEWORD and freezes there.

The Terminal program did not find a character return at the end of the last line. Here are the options,
1. Hit an ENTER key when it hang there, or
2. During you highlight to copy the program makesure you highlight & copy the blank line after the last line of code, or
3. Edit your text program, Besure every single line of code is ended with the character return (simply hit on the ENTER key includes the last line of code), then save the file.



After that i tested to define new word like:

: TEST 1 2 + . ; OK
TEST 3 OK

and use TEST word. It worked fine and returned number 3.

Then i tested to put the TEST Word in to Flash memory:

: TEST 1 2 + . ; EEWORD OK
TEST

but when i use TEST word it returns one white space at the end of TEST and just freezes.

If i reset the IsoPod it gets over the freezing but freezes again when i use the TEST word...

If i power down IsoPodX the TEST word is gone so it has not saved anything to flash.

The previous EEWORDed TEST is already loaded in flash but it did not link because you did not SAVE-RAM before you recycled the power that is the reason why it took the new TEST,

: TEST 1 2 + . ; OK
TEST 3 OK
and use TEST word. It worked fine and returned number 3.

And it froze when you EEWORDed another (new) TEST. What you should do is,
- Besure to SCRUB if the same word name is EEWORDed again, or SCRUB each time you reload a new file into the flash memory.
- SAVE-RAM if you want the eeworded word to be link or remember next time you recycle the power.

Serac
10-28-05, 12:21 AM
So i was just being stupid =),

SCRUB made it working again...

i just assumed the words were not saved when i typed TEST and the terminal answered TEST?

but now its working again, Thanks for the help ! =)