Experimental Physics and
| |||||||||||||||
|
hi, I want to use streamdevice to send an array of bytes to power supply controller, for example, 1024 bytes data. so I use one soft waveform record (PS:T1) to prepare the array data, if a client such as caput or a python script write data to PS:T1, it will trigger PS:T2 in streamdevice to output data to power supply. In PS:T2's protocol file, the out value is coming from PS:T1. But it can't work, would you please give me some advice? { field(SCAN, "Passive") field(DTYP, "Soft Channel") field(NELM, "1024") field(FTVL, "UCHAR") field(FLNK, "$(USER):T2") } record(waveform, "PS:T2") { field(SCAN, "Passive") field(DTYP, "stream") field(NELM, "1024") # field(FTVL, "UCHAR") field(INP, "@ps.proto set_waveform $(terminal)") } protocol file is like following:
set_waveform {
out "%(\PS:T1)r"; # in "\?" $1 0x00 0x00 0x00 0x00; }
Best wishes
Geyang 2015-07-07
| ||||||||||||||
ANJ, 16 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |