Post Reply 
Emu71 doslink hangs
05-18-2024, 04:37 PM
Post: #3
RE: Emu71 doslink hangs
(05-18-2024 04:33 PM)J-F Garnier Wrote:  
(05-18-2024 04:15 PM)Vincent Weber Wrote:  I tried to use doslink to import basic text files, following Valentin's clear instructions in this thread:

https://archived.hpcalc.org/museumforum/...85687.html

I renamed my text file emu_in.dat, placed it in Emu71 root directly, entered the small program as it is to read it...

Everythings goes fine, the read lines are displayed correctly, until the end of the file is reached. Instead of stopping at line 30 (the ENTER statement) because there is nothing more to be read, the programs gets stuck in this line. It does not loop forever, a PRINT statement added just after line 30 is never executed. It seems it hands in this line 30, trying to read forever.

No bug here, it's the normal HP-71B HP-IL behaviour when trying to input data from an interface (remember: DOSLINK is an interface).
Since an interface can be much slower than the 71B, the 71B waits for data as long as you ask it to do enter something.
Pressing ESC twice aborts the endless ENTER, but can leave the HP-IL in unknown state so a RESTORE IO is useful.
Or better, as I recommend in this document, add a *EOF" line in your text file and explicitly check for it in the loop to end it.

J-F
(happy to be back in the forum)
Many thanks JF for your fast and very enlightening answer, but just for me to understand, Valentin is the thread I quoted said that the program will stop at line 30 when nothing more to read, and some people actually tried this program and sait it was working as advertised... Why is that so, then?

Many thanks and cheers,

Vincent
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Emu71 doslink hangs - Vincent Weber - 05-18-2024, 04:15 PM
RE: Emu71 doslink hangs - J-F Garnier - 05-18-2024, 04:33 PM
RE: Emu71 doslink hangs - Vincent Weber - 05-18-2024 04:37 PM
RE: Emu71 doslink hangs - J-F Garnier - 05-18-2024, 04:49 PM
RE: Emu71 doslink hangs - Vincent Weber - 05-18-2024, 06:13 PM
RE: Emu71 doslink hangs - J-F Garnier - 05-18-2024, 08:50 PM
RE: Emu71 doslink hangs - Vincent Weber - 05-18-2024, 09:28 PM
RE: Emu71 doslink hangs - J-F Garnier - 05-19-2024, 07:56 AM
RE: Emu71 doslink hangs - Vincent Weber - 05-19-2024, 08:04 AM
RE: Emu71 doslink hangs - J-F Garnier - 05-19-2024, 08:22 AM
RE: Emu71 doslink hangs - Vincent Weber - 05-19-2024, 08:38 AM
RE: Emu71 doslink hangs - J-F Garnier - 05-19-2024, 09:50 AM
RE: Emu71 doslink hangs - Vincent Weber - 05-19-2024, 10:54 AM



User(s) browsing this thread: 1 Guest(s)