EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: MAXvConfig() error in st.cmd
From: "Fong, Nia W." <[email protected]>
To: "[email protected]" <[email protected]>
Date: Fri, 13 Jul 2012 12:11:44 -0700
Hi,

I just installed a new OMS MAXv VME card and was getting an error when calling MAXvConfig() in st.cmd :

    MAXvSetup(1, 16, 0xF000, 200, 5, 10)
0x00000000 (0)
    #config0="AX LH PSO"
    MAXvConfig(0, "AX LH PSO", 0x00)
Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n'

Passing 2 parameters returned the same error :

    MAXvSetup(1, 16, 0xF000, 200, 5, 10)
0x00000000 (0)
    #config0="AX LH PSO"
    MAXvConfig(0, "AX LH PSO")
Cexp syntax error: syntax error, unexpected '(', expecting '=' or '\n'

It looks like MAXvConfig() expects three parameters in the rest of the code, but it's function definition only defines 2 in drvMAXv.cc.

I recompiled with the small change and no longer get the error.  However, I'm just setting everything up first the first time and don't yet have a motor connected so am not sure if this is the correct fix.  Could anyone with more experience provide more insight?
  
All jumpers are default factory settings except for J13.
Jumper J13 is set for A16 supervisory access (0x2D or 101101)

--------------------------
Original drvMAXv.cc:
--------------------------
/* Common local function declarations. */
extern "C" {
RTN_STATUS MAXvSetup(int, int, unsigned int, unsigned int, int, int);
RTN_VALUES MAXvConfig(int, const char *);
}

---------------------------
Modified drvMAXv.cc:
---------------------------
/* Common local function declarations. */
extern "C" {
RTN_STATUS MAXvSetup(int, int, unsigned int, unsigned int, int, int);
RTN_VALUES MAXvConfig(int, const char *, int);
}


Thanks,
Nia 
Only in MAIN_TRUNK-nia/motorApp/OmsSrc: .svn
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/CVS and MAIN_TRUNK-nia/motorApp/OmsSrc/CVS
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.Common and MAIN_TRUNK-nia/motorApp/OmsSrc/O.Common
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.RTEMS-beatnik and MAIN_TRUNK-nia/motorApp/OmsSrc/O.RTEMS-beatnik
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.RTEMS-mvme3100 and MAIN_TRUNK-nia/motorApp/OmsSrc/O.RTEMS-mvme3100
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.RTEMS-uC5282 and MAIN_TRUNK-nia/motorApp/OmsSrc/O.RTEMS-uC5282
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.linux-x86 and MAIN_TRUNK-nia/motorApp/OmsSrc/O.linux-x86
Only in MAIN_TRUNK-nia/motorApp/OmsSrc: O.linuxRT-x86
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.vxWorks-mpc8540 and MAIN_TRUNK-nia/motorApp/OmsSrc/O.vxWorks-mpc8540
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.vxWorks-ppc604_altivec and MAIN_TRUNK-nia/motorApp/OmsSrc/O.vxWorks-ppc604_altivec
Common subdirectories: motor-R6-7-RC5_1-2/motorApp/OmsSrc/O.vxWorks-ppc604_long and MAIN_TRUNK-nia/motorApp/OmsSrc/O.vxWorks-ppc604_long
diff motor-R6-7-RC5_1-2/motorApp/OmsSrc/drvMAXv.cc MAIN_TRUNK-nia/motorApp/OmsSrc/drvMAXv.cc
181c181
< RTN_VALUES MAXvConfig(int, const char *);
---
> RTN_VALUES MAXvConfig(int, const char *, int);
Only in MAIN_TRUNK-nia/motorApp/OmsSrc: drvMAXv.cc~

Replies:
RE: MAXvConfig() error in st.cmd Mark Rivers

Navigate by Date:
Prev: Re: Support Required for SNL Kasemir, Kay
Next: Re: Support Required for SNL Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Support Required for SNL J. Lewis Muir
Next: RE: MAXvConfig() error in st.cmd Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024