EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: --more-- Waveform record updating problem
From: "Prachi Chitnis" <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Date: Thu, 23 Jul 2009 17:53:07 +0530 (IST)
Hello,
This mail is in reference to my previous mail. While I previously said
that GetWFC1.VAL is showing correct data, I saw some strange behavior. The
query to the scope (C1:WAVEFORM? DAT1) replies back integers (127 to -128)
which show relative positon of a point to x axis. Now whenever I get a y=0
point, all the values after that disappear in the GetWFC1.VAL array.
Follows my device support read_wf() function:

static long read_wf(pwf)
    struct waveformRecord *pwf;
{
        struct vmeio *pvmeio;
        char ip_address[50];
	int sockfd;
	char outbuf[MAX_O_ST];
	char inbuf[MAX_I_ST];

	sprintf(ip_address, OUR_SCOPE_IP);

	sockfd=LECROY_TCP_connect(ip_address, MAX_TCP_CONNECT);
	if (sockfd<0)
	{
		errlogPrintf("\nCould not connect to the scope on IP: %s\n",ip_address);

	}

	pwf->udf = FALSE;

	pvmeio = (struct vmeio *)&(pwf->inp.value);

	strcpy(outbuf,&(*(pvmeio->parm)));

	if(pvmeio->card)
	{LECROY_TCP_write(sockfd, outbuf);}

	if(pvmeio->signal)
	{LECROY_TCP_read(sockfd, inbuf, sizeof(inbuf), MAX_TCP_READ);}


	pwf->bptr = inbuf;

	pwf->nord = strlen(inbuf);

	LECROY_TCP_disconnect(sockfd);

     return(0);

}


Please help me out...
Thanx n regards
--
Prachi Chitnis
Scientific Officer 'C'
Raja Ramanna Centre for Advanced Technology,Indore
India

| Hello,
| My setup consists of a LeCroy scope that is interfaced to an Ubuntu 8.10
| machine on Ethernet.
| I could not use Asyn to communicate with this scope, so I wrote device
| support for it. My db file is as follows:
|
|
| record(waveform, GetWFC1) {
|   field(SCAN, "1 second")
|   field(PINI, "NO")
|   field(DTYP, "LeCroy WaveSurfer")
|   field(INP, "#C1 S1 @C1:WAVEFORM? DAT1\n")
|   field(NELM, "1000")
|   field(FTVL, "CHAR")
| }
|
| record(waveform, C1a) {
|   field(SCAN, "1 second")
|   field(PINI, "NO")
|   field(DTYP, "Soft Channel")
|   field(INP, "GetWFC1 CA")
|   field(NELM, "1000")
|   field(FTVL, "CHAR")
| }
|
| I am using the VME_IO for input link for "LeCroy Wavesurfer" device
| support. Card = (1,0) denotes (write, no write) to device, Signal = (1,0)
| denotes (read, no read) from the device and the parm denotes the command
| to be written to the device. The GetWFC1.VAL field is showing correct data
| & is updating properly.
|
| My problems are:
|
| 1)  When I keep C1a.INP as PP, I dont get any data into it.
|
| 2)  When I keep C1a.INP as CA (also CP), and monitor this record, I get
| the data into VAL field, the timestamp updates but the data doesn't
| update.
|
| 3)  When I morph C1a to subarray record, with same fields and MALM set to
| 1000, the the same prob as 2) occurs
|
| 4) I also set the PHAS fields of both records as 0 and 1(resp.), but that
| too didn't work.
|
| 5)  When I group these two records, then nor PP neither CA input link is
| able to fetch data into the VAL field of group:C1a record.
|
| 6)  I also tried to make the scan rate of C1a faster than GetWFC1, but
| that didn't help.
|
| Please suggest some solution.
| Thanx in advance...
|
| --
| Prachi Chitnis
| Scientific Officer 'C'
| Raja Ramanna Centre for Advanced Technology, Indore
| India
|



Replies:
Re: --more-- Waveform record updating problem Burkhard Kolb
References:
Waveform record updating problem Prachi Chitnis

Navigate by Date:
Prev: Re: Stream Device I/O Intr bugs, ongoing Dirk Zimoch
Next: Re: --more-- Waveform record updating problem Burkhard Kolb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Waveform record updating problem Prachi Chitnis
Next: Re: --more-- Waveform record updating problem Burkhard Kolb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·