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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Snl strings
From: Eric Norum <[email protected]>
To: "Gerke, Christian" <[email protected]>
Cc: [email protected]
Date: Wed, 25 Feb 2009 10:17:36 -0600
Declare the variable as a string:

.
.

string currentState;
assign currentState to "{P}ClockScanStateSI";
.
.
.

            strcpy(currentState, "Scan P0 phase");
            pvPut(currentState);



On Feb 25, 2009, at 10:07 AM, Gerke, Christian wrote:

Hi

For EPICS 3.13 and SNL 1.9.5 how do I send a string from a snl program
to a stringin-record?

I tried:

char debus[40];
assign debus to "KS2:SNL:KUE:DEBUS_stringin";
sprintf(debus,"HDTemp init");
pvPut(debus);

As a result the stringin VAL field contains "72" (the ascii code of "H",
the frist string character) which is not quite what I want.

Is there a problem with strings (character arrays) in snl or the
stringin record?
Or is there something wrong with my approach?

Christian

___________________________________________________________________

Christian Gerke
Deutsches Elektronen Synchrotron DESY
Mitarbeiter der Gruppe MKS2
http://www-mks2.desy.de
Tel +49 40 8998-4028
Fax +49 40 8994-4028
[email protected]
___________________________________________________________________


--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793



Replies:
AW: Snl strings Gerke, Christian
References:
Snl strings Gerke, Christian

Navigate by Date:
Prev: Snl strings Gerke, Christian
Next: vme usb support David Kline
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Snl strings Gerke, Christian
Next: AW: Snl strings Gerke, Christian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·