Experimental Physics and
| |||||||||||||||
|
Hi All, I have a device to which I need to send a file path followed by a number: example: load_curve C:\pulse.txt 3870 The file path is stored in the database as a waveform of chars. When I run the protocol stream device sends (what I think is) a null terminator after the file path: device receives: load_curve C:\pulse.txt\x00 3870 Is there any way of getting rid of the \x00 terminator? Below I copy my protocol and the database records. Cheers, Isabella I've defined the protocol in stream device as: load_curve { out "load_curve %(\$1)c %(\$2)i"; in "%(\$1:\$2)b"; } and in the database I have: record(bo, "DEV:LOAD_CURVE") { field(DTYP, "stream") field(OUT, "@my.proto load_curve(DEV:CURVE_FILE, DEV:VPI) $(PORT)") } record(waveform, "DEV:CURVE_FILE") { field(DESC, "File path") field(DTYP, "Soft Channel") field(NELM, "256") field(FTVL, "CHAR") }
| ||||||||||||||
ANJ, 16 Dec 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |