I just wonder if somebody can help. I have some questions:
I have done a small BASIC program to read data from a scale.
EX: 10 OPEN "com1:1200,e,7,1,cs0,ds0,cd0" As #1 LEN=20
20 PRINT #1, CHR$(5)
30 A$ = INPUT(20, #1)
40 PRINT A$
The program works fine under GW BASIC.
However, when I compiled under TURBO BASIC V2.01, it works only once. I
get an I/O device error at LINE 30.
Can U advise why is that so.
1. Do U by any chance know any basic communication software or site
that I can refer to.
2. How does the "WAIT" command work? May be that I shouild include it
in my program.?
Please help & advise
Thanks a lot & Best Regards
Pierre
Email: cways@intnet.mu
I have done a small BASIC program to read data from a scale.
EX: 10 OPEN "com1:1200,e,7,1,cs0,ds0,cd0" As #1 LEN=20
20 PRINT #1, CHR$(5)
30 A$ = INPUT(20, #1)
40 PRINT A$
The program works fine under GW BASIC.
However, when I compiled under TURBO BASIC V2.01, it works only once. I
get an I/O device error at LINE 30.
Can U advise why is that so.
1. Do U by any chance know any basic communication software or site
that I can refer to.
2. How does the "WAIT" command work? May be that I shouild include it
in my program.?
Please help & advise
Thanks a lot & Best Regards
Pierre
Email: cways@intnet.mu