AnsweredAssumed Answered

VRf: HP 700 serial timeouts

Question asked by VRFuser on Mar 25, 1997
Hello Mir,

Yes, 25.5 seconds is the maximum.

I set the timeout to 1 second and use a loop to try up to
60 times to get 1 minute. Add an error pin to trap the
timeouts. Upon receipt of data prior to the timeout
execute a break.

____________
| FORCOUNT |
|       60         |___
|-------------------|     |
                          |
________|________
| SERIAL     |
| READ X              |
|                        X |--------------------->>
|                           |  |
|                     ERR|  |
|----------------------------|          ___|________
               |  BREAK       |
          |____________|


Regards

Rob Marquardt
System Test Engineering
Rockwell Automation / Allen-Bradley
Milwaukee, Wisconsin, USA

----------
From:  Mir_Mahiuddin
Sent:  Wednesday, March 26, 1997 6:39 AM
To:  hpvxd_xc
Cc:  Mir_Mahiuddin
Subject:  VRf : Need help


Hi,
I am using serial communication with an instrument using HPVEE Direct  
I/O..
In Direct I/O configuration, i specify a timeout of 60 seconds. I run the
HPVEE program from a HP-700 series m/c. when i runthis program, it sets
the timeout of the HP serial terminal ( serial10) as "min=0, time = 250"
(viewed using stty )..which means the timeout of that particular terminal
becomes 250/10 = 25 seconds...( i think since termio structure has only
i byte for storing time, it can be set atmost to 255 ie 25.5 sec).
so effectively my read routine comes out, after 25 seconds, irrespective
of the timeout given in Direct I/O configuration)..
i would like to know, is it that 25.5 sec is the max timeout can be
given for a direct I/O configuration....if not, how i can implement
a timeout of 1 min.
Looking forward for your valuable suggestions.
Thanking You.

mir

------------------------------
Mir Mahiuddin,
Hughes Software Systems,
Electronic City,
Plot No- 31, Sector - 18,
Gurgaon - 122 015
  

Tel - +91-124-343703 ext 2274
Email : mmahiuddin@hss.hns.com
        mahiuddin@pemail.net


Outcomes