Toggle navigation
PxPlus User Forum
PxPlus User Forum
»
Main Board
»
Discussions
»
Programming
»
Piped character count
Likes
« previous
next »
Print
Pages: [
1
]
Author
Topic: Piped character count (Read 204 times)
James Zukowski
Diamond Member
Posts: 172
Piped character count
«
on:
September 03, 2020, 02:51:17 PM »
While we can get where we are when outputing to a serial file by checking KEC() for the file, is there a way to determine how many characters have been sent to a piped channel? If I open (ch)"|process_prog...", can I know how much went out before I close (ch)?
Thanks!
Logged
James Zukowski
Programmer / ERP Analyst
Beauty Enterprises, Inc.
150 Meadow St.
Hartford, CT 06114
860.296.9303 Ext 231
michaelgreer
Gold Member
Posts: 55
Re: Piped character count
«
Reply #1 on:
September 04, 2020, 10:34:21 AM »
James,
I would be interested if there is an internal value that tracks this, but I just use a variable, reset a the time of Pipe open, and add the size (len) of the payload before I write it to the pipe channel.
Michael
Logged
Print
Pages: [
1
]
« previous
next »
PxPlus User Forum
»
Main Board
»
Discussions
»
Programming
»
Piped character count