EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  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  <20052006  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
Title: Message

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]]
Sent: Wednesday, August 10, 2005 4:04 AM
To: [email protected]
Subject: Arrays in Start Up Scripts

 

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.

 


Navigate by Date:
Prev: Re: Arrays in Start Up Scripts David Maden
Next: Keithley6517A Electromete GPIB Device Support Justice, Thomas A.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Arrays in Start Up Scripts Ernest L. Williams Jr.
Next: Keithley6517A Electromete GPIB Device Support Justice, Thomas A.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·