Experimental Physics and
| |||||||||||||||
|
Dear Nicklas,
I happen to have discussed this issue with Dirk just last week. First of all: try 'var streamDebug 1' (for a short while only!) to get a lot of output that shows in more detail what happens. Then: When parsing incoming messages, StreamDevice goes strictly left to right. It matches, executes % format converters, continues matching, ... That means for messages like those from your device: the discriminating character (leading to a format mismatch) happens *after* the format converter has been executed. Tough: too late. The same happens - that was my discussion with Dirk - for a wrong checksum: the error is detected after all format converters (and redirections) have been executed. StreamDevice is happily writing junk into other records and detects that it was all wrong after the fact. I think your best bet is to use a single format, write the number and the tag in two separate records, and FLNK a combination of calcout then seq to forward the number to where it belongs. Cheers, ~Ralph
| ||||||||||||||
ANJ, 29 Jul 2021 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |