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: ASYN command string with null character
From: Eric Norum <[email protected]>
To: "Bruins, Stefan" <[email protected]>
Cc: "'Marty Kraimer'" <[email protected]>, "'[email protected]'" <[email protected]>
Date: Tue, 29 Nov 2005 08:22:02 -0600
If you're using the devGpib ASYN support you can create such messages merely by providing a custom 'convert' routine.  The tutorial at
shows how to do this.  If your convert routine returns a non-zero value the devSupportGpib.c code will use that value as the length of the message to send. 


On Nov 29, 2005, at 7:47 AM, Bruins, Stefan wrote:

I presume this change has to be made in the "devSupportGpib.c" file of the
asyn driver in the function "writeIt"? Will a make of the ASYN module be
sufficient or must I run the makeSupport command a second time (this may be
a stupid question but I'm pretty new to EPICS/ASYN etc...)

-----Oorspronkelijk bericht-----
Van: Marty Kraimer [mailto:[email protected]]
Verzonden: dinsdag 29 november 2005 14:27
Onderwerp: Re: ASYN command string with null character


Bruins, Stefan wrote:

For the building of device support through the ASYN driver I have to sent a
message with a null character inside. The problem is that the driver
terminates the string at this null character according to the C++ standard.
My question is, how am I able to overcome this problem?

Stefan Bruins



You have to call  pasynOctet->writeRaw instead of pasynOctet->write.

Marty Kraimer

-- 

Eric Norum <[email protected]>

Advanced Photon Source

Argonne National Laboratory

(630) 252-4793




References:
RE: ASYN command string with null character Bruins, Stefan

Navigate by Date:
Prev: Re: ASYN command string with null character Marty Kraimer
Next: FW: ASYN command string with null character Bruins, Stefan
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: ASYN command string with null character Marty Kraimer
Next: FW: ASYN command string with null character Bruins, Stefan
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 ·