Experimental Physics and Industrial Control System
Heinrich,
If your array is less than 40 characters you can use the asyn record. If you use "ASCII" mode, then it does the following before it writes the AOUT array:
/* ASCII output mode */
/* Translate escape sequences */
nwrite = dbTranslateEscape(pasynRecPvt->outbuff, pasynRec->aout);
So it will translate escape characters. In your example if you set AOUT to "\000\001\008" and set TMOD="Write" then this will write that array to the device. Remember to set the terminator to an empty string if the device does not need a terminator.
If you use the waveform record it will not do dbTranslateEscape, so you need to find another way to get binary data into the waveform.
The asyn EPICS waveform record device support does NOT read the current value into an output record at iocInit.
Mark
________________________________
From: [email protected] on behalf of Heinrich du Toit
Sent: Mon 7/2/2007 1:11 AM
To: TechTalk EPICS
Subject: waveform binary init
Hi
I have an octet device. (asyn driver)
It sends commands to some hardware. Now if I send a certain sequence of
chars to the device I can perform some stuff. e.g. reset the device. Or
set a certain mode. - things that will correspond to buttons on the user
interface.
So I like to setup a waveform record with the necessary data inside as
default. And then only trigger the PROC field so that the data be
written to the device.
My only question is - how do I specify this binary data to the waveform?
for example how do I setup a waveform with CHAR data: 00 01 08 or
something like that?
does the waveform things also read once at start up with asyn? even if
it is a write only command?
thanks
-Heinrich
- References:
- waveform binary init Heinrich du Toit
- Navigate by Date:
- Prev:
RE: GPIB Ethernet gateway recommendation Pearson, MR (Matthew)
- Next:
tds3000 Heinrich du Toit
- 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
- Navigate by Thread:
- Prev:
Re: waveform binary init Dirk Zimoch
- Next:
tds3000 Heinrich du Toit
- 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