Changes between Initial Version and Version 1 of epics/streamdevice/waveform1
- Timestamp:
- 02/20/13 11:43:55 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
epics/streamdevice/waveform1
v1 v1 1 = waveformレコードに値を入れたい = 2 3 == 例1:オシロスコープ == 4 あらかじめASCIIモードで転送するように設定。CURV?コマンドを送ると、数値のみをコンマ区切りで値を返す場合。 5 (こんな感じのレスポンスは楽に処理できます) 6 {{{ 7 CURV? 8 19,21,19,20,19,20,19,20,19,18, .... ,19,19,20,20,19,19<LF> 9 }}} 10 11 === 解決方法 === 12 13 14 protocol file (sample.proto) 15 {{{ 16 Terminator = LF; 17 getIDN { 18 out "*IDN?"; 19 in "%39c"; 20 ExtraInput = Ignore; 21 } 22 getDATA { 23 Separator = ","; 24 out "CURV?"; 25 in "%d"; 26 } 27 }}} 28 29 database file (stream.db) 30 {{{ 31 record(waveform, "obina:data_ch1") 32 { 33 field(DESC, "get wave data") 34 field(DTYP, "stream") 35 field(SCAN, "Passive") 36 field(INP, "@stream.proto getDATA PS1") 37 field(NELM, "10000") 38 field(FTVL, "LONG") 39 } 40 }}} 41