Experimental Physics and
| |||||||||||||||
|
I have a Counter which can store data to a buffer. (1) With command "GSDAL?", an array can be read out from the buffer, which looks like this: fig.1 The first 8 colums are Counter data and the last coloum is Timer data. Every line end with CR+RF. (2) With another command ¡°GSCRD?00000000100¡±, the buffer can get the following array. Every line end with CR+RF. fig.2 Question 1. How to read the 2-d array (fig 1) into EPICS? Can I use a waveform to do it? Does anybody has an example for it? Question2. I used a waveform to read the second array (in fig.2). record(waveform, "$(D):Array0") { field(DTYP, "stream") field(INP, "@xxx.proto array_in $(PORT)") field(NELM, "100") field(FTVL, "SHORT") field(SCAN, "5 second") } in the xxx.proto: array_in { seperator=CR; #or CR LF, no different result out "GSCRD?00000000100"; in "%5d"; } and the result shows: xxx:Array0 200 0 0 0 0 0 .... 0 Surely the data is not read correctly. I wonder what the problem is. Can I use waveform to read it? Is there any problem with waveform? For example, the seperator? If not use waveform, how can I read the array out from device buffer? Thanks very much for any advice. Best reguards Kevin 279762081 at qq.com
| ||||||||||||||
ANJ, 20 Apr 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |