Experimental Physics and
| |||||||||||||||||
|
In order to get a newline character into the message box you need to send that character to it in epics. I achieve this with a database that writes a string to the PV the Msg Box is monitoring to, then waits a set amount of time, then writes a newline character to the PV the Msg Box is monitoring. The other possibility is since you don't seem to need all 40 characters(38 are visible) you can just add the newline character to the values before you write them to the PV the Msg Box is monitoring. The way to add an newline character to the PV would be a scalcout record. I'm not sure on how you would take the input float and convert it to a string with scalcout but the documentation should help with that. Here is an example from my code on how to add the character, edited for clarity. record(scalcout, "AddNewline") { field(CALC, "AA + '\n'") field(OUT, "MonitoredPV.VAL PP") field(INAA, "InputString") field(SCAN, "Passive") } That record will write the input string plus a newline character. I hope this helps. Documentation for scalcout: http://www.aps.anl.gov/aod/bcda/synApps/calc/R2-6-3/sCalcoutRecord.html ---------------------------------------------------------------- Robert Horrox University of Washington Medical Center Department of Radiation Oncology On Mon, 24 Sep 2007, Szalata, Zenon M. wrote: I am learning how to use EDM. I have created a message box monitor and connected it to a PV of type double. The soft IOC updates the PV value avery few seconds. A typical value is 9.1990930. In the message box I see 99999999... Where another 9 is appended to the first line each time the PV updates. In the message box properties there is nothing that controls formatting displayed values, nor is there a way to add a newline after each update. Are these somehow controlled via the IOC record setup? What do I need to do to have each full floating point value appear on a separate line? The same string of 9's appears in the log file.
| ||||||||||||||||
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |