[comp.sys.transputer] Use of the ALT statement

davidj@cernvax.UUCP (davidj) (11/14/88)

I am trying to use Transputers in real-time for data acquisition from
an experiment. I have 68020 cards in VME which transmit data up
Inmos links using C012 chips. The data is received by two Transputers
(for the moment). I wish to have a 'reliable' system, so I want the
receiving Transputers to 'TIME-OUT' if they havent received data (after
a suitable time-out period). Thus, I can hear you say, this guy wants
to use an ALT

	ALT
	  ... read data from link
	  ... time out gaurd + error recovery

Well this is fine if NO data is received within the time out period.
What happens if a byte (or more) is received and then the 68020 sender
hangs-up ????
According to Inmos App Note 1, and the occam 2 Reference manual there
is a problem, as the ALT will execute the first of its 'ALTs' to become
ready, in this case the input from link, which then never terminates.

So does anyone have any ideas on how to get around this ???

Answers on a postcard please