1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 <2005> 2006 2007 2008 2009 2010 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 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Arrays in Start Up Scripts |
From: | "Mark Rivers" <[email protected]> |
To: | "Darrell Nineham" <[email protected]>, <[email protected]> |
Date: | Wed, 10 Aug 2005 07:20:50 -0500 |
Hi Darrell, Here is an example of doing it from one of
my startup scripts on vxWorks. In my case I was doing it because I needed to
pass a string that was longer that the maximum number of characters that
vxWorks supports in constant character strings in startup scripts. So I used
malloc(), strcpy(), and strcat(). These are all accessible from the vxWorks
command line/startup script. # MAR345 shutter str=malloc(256) strcpy(str,"P=13BMD:,R=MAR345,IN=13BMD:Unidig1Bi14,") strcat(str,"OUT=13BMD:filter1sendCommand.VAL") dbLoadRecords("$(CARS)/CARSApp/Db/MAR345_shutter_serial.db",str) Mark Rivers From: Darrell Nineham
[mailto:[email protected]] Dear Fellow Tech-Talkers, I'd like to pass an array of bytes into a config call
in an EPICS start up script. Anyone know of a trick for declaring and initialising an
array in an EPICS / VxWorks start up script ? Darrell Nineham Hytec Electronics Ltd. Tel: +44 (0) 118 975 7770 Fax: +44 (0) 118 975 7566 Web: www.hytec-electronics.co.uk ++++++++++++++++++++++++++++++++++++++++++++ This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to whom they are
addressed. If you have received this email in error, please notify the sender
immediately. The views expressed in the message are those of the individual
author and may not necessarily represent the views of Hytec Electronics Ltd. |