Hi Nia,
You did not provide enough information. Are you running from the iocsh, vxWorks shell, etc.
I use the vxWorks shell with motor 6-6-2 and I just use 2 arguments with no problem, which means I am defaulting the third argument to 0.
################################################################################
# OMS MAXv driver setup parameters:
# (1)number of cards in array.
# (2)VME Address Type (16,24,32).
# (3)Base Address on 4K (0x1000) boundary.
# (4)interrupt vector (0=disable or 64 - 255).
# (5)interrupt level (1 - 6).
# (6)motor task polling rate (min=1Hz,max=60Hz).
MAXvSetup(2, 16, 0x9000, 190, 5, 10)
drvMAXvdebug=0
# OMS MAXv configuration string:
# (1) number of card being configured (0-14).
# (2) configuration string; axis type (PSO/PSE/PSM) MUST be set here.
# For example, set which TTL signal level defines
# an active limit switch. Set X,Y,Z,T to active low and set U,V,R,S
# to active high. Set all axes to open-loop stepper (PSO). See MAXv
# User's Manual for LL/LH and PSO/PSE/PSM commands.
# Set all axes to open-loop stepper and active high limits
configStep="AX LH PSO; AY LH PSO; AZ LH PSO; AT LH PSO; AU LH PSO; AV LH PSO; AR LH PSO; AS LH PSO;"
# Set all to active low limits for ThorLabs micrometers. Set all to servo.
configServo="AX LL PSM; AY LL PSM; AZ LL PSM; AT LL PSM; AU LL PSM; AV LL PSM; AR LL PSM; AS LL PSM;"
# First MAXv
MAXvConfig(0, configServo)
# Second MAXv is steppers
MAXvConfig(1, configStep)
Mark
________________________________________
From: [email protected] [[email protected]] on behalf of Fong, Nia W. [[email protected]]
Sent: Friday, July 13, 2012 2:11 PM
To: [email protected]
Subject: MAXvConfig() error in st.cmd
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
- References:
- MAXvConfig() error in st.cmd Fong, Nia W.
- Navigate by Date:
- Prev:
Re: Is there EPICS Device Support for SRS830 ( 100 kHz DSP lock-in amplifier) out there? Kurt Goetze
- Next:
asynPortDriver Szalata, Zenon M.
- 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:
MAXvConfig() error in st.cmd Fong, Nia W.
- Next:
Fwd: RE: MAXvConfig() error in st.cmd Ron Sluiter
- 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
|