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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Asyn |
From: | priya tiwari <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Thu, 18 Sep 2014 11:27:33 +0530 |
I do this now using a scalcout and stringout records as such:
record(stringout,"$(P)ReadDioIn") {
field(DESC,"Read DIO Input Command")
field(DTYP,"Soft Channel")
field(UDF,"0")
field(VAL,"/DIO/read")
}
record(scalcout,"$(P)DioIn") {
field(DESC,"Read DIO Inputs")
field(DTYP,"Soft Channel")
field(CALC,"PRINTF('%s',AA)")
field(INAA,"$(P)ReadDioIn.VAL NPP NMS")
field(OUT,"$(P)DIO.AOUT PP NMS")
field(SCAN,"2 second")
}
In this example every 2 seconds the scalcout processes and sends the string
/DIO/read to an asyn record AOUT field ($(P)DIO.AOUT) with a PP link which
causes the asyn record to process. So the string to send is in the stringout
record and the scalcout just formats the string.
Marty
On 09/17/2014 11:54 AM, priya tiwari wrote:
Actually i am just trying,it was not correct. but i want give command in string
format from one record to AOUT field of asyn record.
On Wed, Sep 17, 2014 at 5:54 PM, Mark Rivers <[email protected]
<mailto:[email protected].edu>> wrote:
Did you try connecting the OUT field of the sCalcout record to the AOUT
field of the asyn record, using the PP attribute?
Mark
________________________________
From: [email protected] <mailto:tech-talk-bounces@aps.anl.gov>
[[email protected] <mailto:tech-talk-bounces@aps.anl.gov>] on
behalf of priya tiwari [[email protected]
<mailto:tiwaripriya013@gmail.com>]
Sent: Wednesday, September 17, 2014 6:12 AM
To: [email protected] <mailto:[email protected]>
Subject: Asyn
Hello,
I put the command such as *IDN?\n in INP field of waveform
record and i want to retrieve this command in AOUT field of ASYN record.How
to link it plz give suggestions...
i am trying like this but it is wrong plz give me actual solution. I am
attaching snapshot.