Thanks Franji, The STREAMIN instruction is set to ? complete? when a delimiter is received?.the length option is unchecked,
But question about the inqueue, is the queue before the STREAMIN instruction reads the queue? If so why would any of the settings of the STREAMIN instruction matter?
The settings of STREAMIN govern the behavior of STREAMIN. The .InQueue member is simply giving you status about what's available for STREAMIN to read.
I personally tend to write my comm code by checking the .InQueue member first and only invoking STREAMIN when I know the data is there.
SGn
if Stream.InQueue >= SomeLevelThatMakesSense then STREAMIN
In cases where you don't know the length of the data, you can still use this method to look for the shortest expected data and shorten the timeout to be slightly longer than what it should take to send the longest expected data. Again, personal preference, but I don't like to sit in a STREAMIN without a timeout. If the data didn't show up in a reasonable time, it's always preferable to fall out, clear the buffer, and restart.