Questions:
(OpenVMS version 1.51h)I have an application that involves a VMS
computer talking to (commanding) micro-controllers via dedicated serial
lines. I upgraded from a uVAX II with a serial card to an Alpha
3000-300L with Lantronix terminal server using LAT. After that
flushing the typeahead buffer of these serial ports (which I do after
errors) stopped working. The command executes but no data is removed
from the typeahead buffer. I have read the current OpenVMS manuals the
the necessary QIO calls do not app ear to have changed (and appear to
be valid for LAT connections). What is wrong? My technique is as
follows (but alternate techniques that still work would be welcome!):
code = io$_ReadVBlk .OR. io$m_Timed .OR. io$m_Purge
status = sys$QIO W ( 2 , %val (Chan_num), %val (code), iostat, , ,
2 %ref (dumchar), %val (1), %val (0), , , )