Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  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  <20182019 
<== Date ==> <== Thread ==>

Subject: Re: CSS xy graph question
From: Jörn Dreyer <j.dreyer@hzdr.de>
To: tech-talk@aps.anl.gov
Date: Wed, 18 Apr 2018 13:57:54 +0200
Hi Mark,

yes the NORD field is set correctly:

epics> dbpr XXX:cam1:WaveLengthArray_RBV
ASG:                BUSY: 0             DESC: Array of wavelength per bin       
DISA: 0             DISP: 0             DISV: 1             
NAME: XXX:cam1:WaveLengthArray_RBV                   NORD: 4000          
SEVR: NO_ALARM      STAT: NO_ALARM      TPRO: 0             VAL: (nil)

epics> dbpr XXX:image1:ArrayData
ASG:                BUSY: 0             DESC:               DISA: 0             
DISP: 0             DISV: 1             NAME: XXX:image1:ArrayData       
NORD: 2048          SEVR: NO_ALARM      STAT: NO_ALARM      TPRO: 0             
VAL: (nil)

If I do a caget it returns:

$> caget HIBEF:XFEL:cam1:WaveLengthArray_RBV
HIBEF:XFEL:cam1:WaveLengthArray_RBV 4000 340.32 340.702 341.084 341.467 
341.849 342.231 342.614 342.996 343.378 343.76 344.142 344.524 344.906 345.288 
345.669 ....

So that part works. If I add this PV as "X PV" to the XY graph widget, CSS has 
a problem and disconnects from the IOC nand reconnects to it aftera short 
moment.

Regards,

Jörn

Am Mittwoch, 18. April 2018, 13:35:55 CEST schrieb Mark Rivers:
> Has the NORD field of that waveform record been set correctly?  What happens
> if you do caget on it?
> 
> Mark
> 
> 
> ________________________________
> From: tech-talk-bounces@aps.anl.gov <tech-talk-bounces@aps.anl.gov> on
> behalf of Jörn Dreyer <j.dreyer@hzdr.de> Sent: Wednesday, April 18, 2018
> 4:31 AM
> To: tech-talk@aps.anl.gov
> Subject: CSS xy graph question
> 
> Hi,
> 
> I have a question regarding the XY graph widget in CS Studio.
> I want to define the x axis labels based on an array read from my
> areadetector driver. The PV is of type waveform with 4000 elements of type
> double and contains one value per bin.  If I put this record as "X PV", the
> widget shows an error and the message that the value of this PV is nil.
> 
> The reason for this is, that the driver is universal for a class of
> spectrometers where every pixel in the sensor stands for a certain
> wavelength. Different devices have different ranges of wavelength they
> cover.
> Of course I could hard code the range, but then one needs to generate a
> separate OPI file for each type of device.
> 
> What is the correct type for the PV that defines the x axis?
> 
> Regards,
> 
> Jörn Dreyer


-- 
Dr. Joern Dreyer
HIBEF DAQ + Controls
Institut für Strahlenphysik
Helmholtz-Zentrum Dresden - Rossendorf e.V
Abt. FWKX                Tel: +49 351 260 3263
                                   FAX: +49 351 260 3700
01314 Dresden        eMail: j.dreyer@hzdr.de

Helmholtz-Zentrum Dresden - Rossendorf e.V (HZDR)
Bautzner Landstraße 400, 01328 Dresden
Vorstand: Prof. Dr. Dr. h. c. Roland Sauerbrey, Dr. Ulrich Breuer
Vereinsregister: VR 1693 beim Amtsgericht Dresden



Replies:
RE: CSS xy graph question Mark Rivers
References:
CSS xy graph question Jörn Dreyer
Re: CSS xy graph question Mark Rivers

Navigate by Date:
Prev: Re: CSS xy graph question Mark Rivers
Next: Re: Problem with autosave module making it crash at random basis. 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  <20182019 
Navigate by Thread:
Prev: Re: CSS xy graph question Mark Rivers
Next: RE: CSS xy graph question 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  <20182019 
ANJ, 18 Apr 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·