EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Racal 3161 Waveform Generator
From: John Faucett <[email protected]>
To: [email protected]
Date: Wed, 24 Apr 2002 10:05:45 -0600
I'm writing device support for a Racal 3161 VXI Waveform Generator with a Baja68K IOC. Has anyone else done this? Everything works except for the shared memory download. Here's the commands:

OUTP OFF;:TRAC DEF 1,32,1;:TRAC SEL 1
SMEM:MODE WRITE;:SMEM:STAT ON
*OPC?
(wait for response to be 1)
(copy array of short integers to A24 memory)
SMEM:STAT OFF;:FUNC:MODE USER;:OUTP ON;:OUTP:SYNC ON

The copy routine is (in simplified form)

#include <drvEpvxi.h>
LOCAL STATUS copy_n_points( int la, short *points, int n) {
    short *pbase;
    struct vxi_csr *pcsr;
    char  *VMEaddr = NULL;

    pcsr = VXIBASE( la);
    VMEaddr = ( char *) ( pcsr->dir.w.offset<<8);
    sysBusToLocalAdrs( VME_AM_STD_SUP_DATA, VMEaddr, ( char **) &pbase);
    memcpy(( void *) pbase, ( void *) points, 2*n);
}

If I copy a large number of points, say 1000, the waveform changes, although it isn't what I expect. Copying a small number of points has no effect. Perhaps this indicates that pbase is being calculated incorrectly.
Navigate by Date:
Prev: Re: AO: Drive Limit Mode Benjamin Franksen
Next: Re: AO: Drive Limit Mode Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  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: GTR: Generic Transient Recorder Marty Kraimer
Next: 3.14 questions Carl Lionberger
Index: 1994  1995  1996  1997  1998  1999  2000  2001  <20022003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·