I am not familiar with the devGpib device support that you are using. I was making a general point that EPICS output records typically do a read during iocInit to come up with the current state of the device. I assume it is possible to do this with devGpib but I don't know how. Eric Norum is probably the person to ask.
Mark
________________________________
From: Szalata, Zenon M. [mailto:[email protected]]
Sent: Fri 10/19/2007 6:38 PM
To: Mark Rivers; EPICS tech-talk
Subject: RE: Initial Value
I don't understand. You seem to be implying that the mbbo record should come up in a state which corresponds to the state of the instrument. That is not what happens in my case. This is my record:
record( mbbo,"$(P)$(R)WFunc"){
field( DESC, "set function")
field( DTYP, "ag33220")
field( OUT, "#L$(L) A$(A) @4")
}
Am I missing some field in this? The gpibCmd is:
{&DSET_MBBO,GPIBEFASTO,IB_Q_HIGH,0,0,0,32,0,0,0,fcmds,&func,0}
Where:
static char* funcList[]={"SIN","SQU","TRI","RAMP","NOISE","DC","USER",0};
static unsigned long funcVal[]={0,1,2,3,4,5,6,7};
static struct devGpibNames func={7,funcList,funcVal,2};
static char *(fcmds[])={"APPL:SIN","APPL:SQU","APPL:TRI","APPL:RAMP",
"APPL:NOISE","APPL:DC","APPL:USER",NULL};
Thanks for helping,
Zen
-----Original Message-----
From: Mark Rivers [mailto:[email protected]]
Sent: Friday, October 19, 2007 3:27 PM
To: Szalata, Zenon M.; EPICS tech-talk
Subject: RE: Initial Value
Yes, the device support for the mbbo record should do an initial read of the device to get the value when the IOC boots.
You can see an example in the generic asyn device support for the mbbo record in asyn/devEpics/devAsynInt32.c
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Szalata, Zenon M.
> Sent: Friday, October 19, 2007 5:24 PM
> To: EPICS tech-talk
> Subject: Initial Value
>
> An Agilent 33220A Wave Form Generator is attached to ICS8065
> Ethernet-GPIB controller. I am designing a soft IOC using EPICS
> 3.14.9 and asyn 4-8. I have setup mbbo type record to control the
> instrument function, which can have one of 7 values. In edm I have a
> choice button connected to this record. I can chose the function by
> clicking on one of the choices. When the instrument is in a function
> which corresponds to any but the first choice and the IOC is
> restarted, the record comes up with some initial values consistent
> with the first choice. Hence, the instrument and the IOC disagree on
> the function.
> Is there a simple way to initialize the mbbo record when the IOC is
> starting up so that it reflects the function selected in the
> instrument? Thanks, Zen
>
>
- Replies:
- RE: Initial Value Mark Rivers
- References:
- Initial Value Szalata, Zenon M.
- RE: Initial Value Mark Rivers
- RE: Initial Value Szalata, Zenon M.
- Navigate by Date:
- Prev:
RE: Initial Value Szalata, Zenon M.
- Next:
RE: Initial Value Mark Rivers
- 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: Initial Value Szalata, Zenon M.
- Next:
RE: Initial Value Mark Rivers
- 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
|