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
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.