News:

  • August 24, 2026, 08:31:20 AM

Login with username, password and session length

Author Topic: Streamout - Error Bit  (Read 8053 times)

sgsims

  • Hero Member
  • *****
  • Posts: 127
Streamout - Error Bit
« on: August 29, 2016, 10:39:24 PM »
I am using a STREAMOUT instruction in a program and during testing I can't get the Error bit to set.  I guess that's good but it makes me wonder what consdition will trigger the Error bit being set.  I unplugged the cable from the serial port,  shut down the program receiving the data,  emptied the SS location of any strings and still can't get the erro bit to go high.

Also,  what would add to the $serio_000_B.OutQueue count?  Can't get that to show any byte counts in the outqueue either.


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Streamout - Error Bit
« Reply #1 on: August 30, 2016, 12:11:49 AM »
I am using a STREAMOUT instruction in a program and during testing I can't get the Error bit to set.  I guess that's good but it makes me wonder what consdition will trigger the Error bit being set.  I unplugged the cable from the serial port,  shut down the program receiving the data,  emptied the SS location of any strings and still can't get the erro bit to go high.

Also,  what would add to the $serio_000_B.OutQueue count?  Can't get that to show any byte counts in the outqueue either.



For STREAMOUT there really aren't many possible failures if the underlying device is working correctly. For a SERIO failure would be more like the module went missing. For something like a TCP device there are different possibilities, but something like the connection being closed is most likely.

Outqueue won't show if the underlying device is cached. SERIO modules have 256 byte FIFOs, so the queued content gets dumped into the module almost immediately. TCPs are cached in the network stack, so it's similar.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

sgsims

  • Hero Member
  • *****
  • Posts: 127
Re: Streamout - Error Bit
« Reply #2 on: August 30, 2016, 10:47:28 AM »
Thanks Bob..that helps