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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Write to waveform record using PVUtil.writePV |
From: | "Abdalla Ahmad" <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Mon, 11 Jul 2016 11:10:42 +0000 |
Hello all, Recently we created a waveform record that holds a firmware for a device. We read the firmware from a binary file and put every 4 bytes as unsigned integer into an array of integers.
We found out that in order for arrays to be passed to the writePV API using a Python script, it must be a float array (either array or jarray). Can be done something like this: Data = "" [], 'f' ) Now since we need to send unsigned integers, something like this won't work: Data = "" [], 'l' ) Or anything other than 'f' or 'd' will give error: java.lang.RuntimeException: Unsupported type for CA: class [J Why does the writePV API does not accept any array other than float or double array array? The bytes to be sent are unpacked from the bin file with a specific bit pattern that should
not be changed or the device is rendered unusable and needs restart. Best Regards, Abdalla Ahmad Control Engineer SESAME Allan, Jordan. Tel: (+962-5) 3511348 , ext. 265 Fax: (+962-5) 3511423 Mob: (+962-7)88183296 |