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: | streamdevice question |
From: | geyang <[email protected]> |
To: | tech-talk <[email protected]> |
Date: | Wed, 27 Jul 2016 00:18:05 +0800 (CST) |
record(waveform, "data")
{
field(DTYP, "stream")
field(SCAN, "Passive")
field(NELM, "256")
field(FTVL, "FLOAT")
field(INP, "@psc.proto set_array terminal")
}
The proto file as following:
set_array {
MaxInput = 4;
out "%4R";
in "%(crc.VAL)4r"
}
Then use python to create a data list like this as the count of 0xffffffff is different each time:
[3.14,3.14, 0xffffffff,0xffffffff, 0xffffffff,0xffffffff,…],
cothread to caput the list to pv.
But the 0xffffffff will be converted to float 4294967295 and send to device as 0x4F800000 by streamdevice.