Hi
We have a device that performs data read-out as follows:
We send the command “ADC 10” that collects 10 ADC samples for each of the 4 channels, the response is as follows:
1 2 3 4
-5 -8 0 1
And so on until the 10th sample. The target is to read each channel individually in its own waveform record. Here are my questions:
1.
Is it possible to parse such output in stream device? I tried the “Separator” command as explained here
https://paulscherrerinstitute.github.io/StreamDevice/tipsandtricks.html along with this input command (in “%d%*d%*d%*d”) but it always read one
sample. This input command should choose the channel and then with the separator command should convert the output into the waveform but that is not what happening. I also tried using PCRE to skip or substitute parts of the input but it is still the same.
2.
Is it possible to use the stream device format converter API to create a custom parser for this case?
If yes, is there a tutorial on how to do it?
3.
Can I write an asynPortDriver class that uses the same asyn port as the stream device?
Thanks!
Abdalla