EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: dbpf to waveform
From: Hinko Kocevar <[email protected]>
To: "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 28 Jun 2018 15:08:07 +0000
Hi Andrew,

I've been looking at the dbpf function in base to see what is going on. I'll see if I can come up with something useful. I'm thinking on handling the DBR_DOUBLE similar to DBR_CHAR, for the start.

I'm hoping that conversion functions in dbPutConvertRoutine array do the heavy lifting of converting char digits to double, once called from dbPutField() -> dbPut(). I think I want to treat source of the data as DBR_STRING, and then rely on putStringDouble() to convert.

Thanks,
Hinko

 
-- 
Hinko Kocevar
Beam Diagnostics Engineer
European Spallation Source ERIC
P.O Box 176, SE-221 00 Lund, Sweden
Visiting address: Odarslövsvägen 113, 224 84 Lund
Mobile: +46-721-79 22 58
Phone:  +46-46-888 32 58
Web:    www.esss.se
 

On 2018-06-28 16:56:13+02:00 Johnson, Andrew N. wrote:

Hi Hinko,

The ASCII code for ‘*’ is 42, so you can do

    dbpf <record> ‘*’

I admit this isn’t a particularly general solution, but in an emergency...

Our command-line commands were originally designed for the VxWorks shell which doesn’t allow for large numbers of parameters. Improvements welcomed!

- Andrew

-- 
Sent from my iPad

&gt; On Jun 28, 2018, at 7:12 AM, Hinko Kocevar <[email protected]> wrote:
&gt; 
&gt; Hi,
&gt; 
&gt; at the moment I can use dbpf to write array of char values (ASCII) to waveform.
&gt; 
&gt; epics&gt; dbpf FEB-030Row:PBI-EVR-030:SoftSeq0-EvtCode-SP dodo
&gt; DBR_UCHAR[5]:       100       0x64                111       0x6f                
&gt; 100       0x64                111       0x6f                
&gt; 0         0x0                 
&gt; OTOH, if I want to write '42', as an integer, to index 0 of waveform I do not get expected results.
&gt;  
&gt; epics&gt; dbpf FEB-030Row:PBI-EVR-030:SoftSeq0-EvtCode-SP 42  
&gt; DBR_UCHAR[3]:       52        0x34                50        0x32                
&gt; 0         0x0                 
&gt; 
&gt; Any way to get 42 into the waveform with current iocsh facilities?
&gt; 
&gt; Thanks,
&gt; Hinko
</[email protected]></record>

References:
dbpf to waveform Hinko Kocevar
Re: dbpf to waveform Johnson, Andrew N.

Navigate by Date:
Prev: Re: dbpf to waveform Johnson, Andrew N.
Next: Open positions at LANSCE Faucett, John Allen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: dbpf to waveform Johnson, Andrew N.
Next: Open positions at LANSCE Faucett, John Allen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 28 Jun 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·