Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!ukma!psuvm.bitnet!e8d From: E8D@PSUVM.BITNET Newsgroups: comp.sys.att,comp.sys.ibm.pc Subject: ATT6300/BASIC timer problem Message-ID: <20117E8D@PSUVM> Date: Mon, 14-Sep-87 16:57:28 EDT Article-I.D.: PSUVM.20117E8D Posted: Mon Sep 14 16:57:28 1987 Date-Received: Wed, 16-Sep-87 00:59:52 EDT Organization: The Pennsylvania State University - Computation Center I'm getting a weird error using the BASIC (ugh!) TIMER function on Lines: 23 Xref: mnetor comp.sys.att:1227 comp.sys.ibm.pc:7771 my 6300 (minus). I'm calling it in a loop to control my Metrabyte data aquisition board (which comes with an assembly language routine callable from basic). At seemingly random times I get values that are in error. the values (in seconds past midnight) go greater than 86400 (the number of seconds in a day.) I'm using ATT dos 3.1 and ROM BIOS 1.21 if that makes any difference. the error occurs with GWBASIC and IBM Basic Compiler. I haven't been able to duplicate it on an IBM AT but maybe I just got lucky. On my 6300 the error occurs 1 to approx 6 times a day. Any suggestions? Could I be trying to read the clock as it is being updated? Am I correct that this has nothing to do with the battery-clock since the machine is running continuously? Is there a better way to get the "real time"? Any ideas would be appreciated. ------- Disclaimer: Sorry about the spelling. Evan Dresel Dept. of Geochemistry E8D @ PSUVM (bitnet) 228 Deike Bldg. ...!psuvax1!psuvm.bitnet!e8d (uucp <--> Penn State University bitnet gateway) University Park, PA 16802 e8d%psuvm.bitnet@wiscvm.arpa (arpa) (814) 865-1125