I have the need my script wait until data is recieved before it proceeds. I have tried this
while 1
while $RXDATA (and !$RXDATA)
comread DataVal
when dataval call EXIT_LOOP
if iEXIT==1
exitwhile
endif
endwhile
set aspect RXDATA OFF
exitwhile
endwhile
but is doesn't seem to act correctly. Any suggestions.
while 1
while $RXDATA (and !$RXDATA)
comread DataVal
when dataval call EXIT_LOOP
if iEXIT==1
exitwhile
endif
endwhile
set aspect RXDATA OFF
exitwhile
endwhile
but is doesn't seem to act correctly. Any suggestions.