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  2009  2010  2011  2012  2013  <20142015  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  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Query on TCP IP
From: RITU JAIN <[email protected]>
To: "[email protected]" <[email protected]>, "[email protected]" <[email protected]>
Date: Thu, 13 Feb 2014 13:19:53 +0800 (SGT)

Dear Sir/Madam
I have establish connection using TCP asyn module by using and also receiving 100bytes TCP data, it is stored in pgpibDpvt->msg.
I am using following gbib command

static struct gpibCmd gpibCmds[]={
    {@DSET_AI, GPIBCVITO, IB_Q_HIGH,0,0,10,10,tcpread,0,0,0,0,0},
};

and in tcp read funtion i am reading using
{
status=pasynOctet->read(asynOctetPvt,pasynUser,pgpibDpvt->msg,100,nchars,0)
}

along with other initialization command.



In the data there are 10 float numbers(i.e.40 bytes), 20 integer numbers (20 bytes) and remaining are Boolean (i.e 20bytes).

I have separated floats, integers and Booleans, now i want to assign this to PV. Kindly help me how to make various records/database (.db file), and how to assign segregated received value to process variable.

I am new in record set/process varible/db file, kindly give one example of each how received data will automatically linked with process variable and could able to reflect the received value in MEDM. (I am familiar with MEDM)
Regards
Ritu Sanjay Jain


On Wednesday, 12 February 2014 10:13 PM, RITU JAIN <[email protected]> wrote:
Dear Sir/Madam
I have establish connection using TCP asyn module, and also received 100bytes TCP data, it is stored in let assume msg->buf. In which 10 are the float (i.e.40 bytes), 20 are the integers (20 bytes) and remaining are Boolean (i.e 20bytes).

I have segregated floats, integers and Booleans, now i want to assign this to PV. Kindly help me how to make various records/database (.db file), and how to assign segregated received value to process variable.

I am very new in record set/process varible/db file, kindly give one example of each.

Regards
Ritu Jain



Replies:
RE: Query on TCP IP Mark Rivers
References:
Query on TCP IP RITU JAIN

Navigate by Date:
Prev: Query on TCP IP RITU JAIN
Next: CSS Archiving - non RDB PV Amien Crombie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Query on TCP IP RITU JAIN
Next: RE: Query on TCP IP Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·