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: | AW: bit shifting operators |
From: | [email protected] |
To: | Florian Feldbauer <[email protected]>, EPICS Tech-Talk <[email protected]> |
Date: | Tue, 28 Jun 2016 15:50:17 +0200 |
Hi, this is what I did. But the calc-fanout records also works. Thanks, Raul
Hey again, just for completeness: you can also use mbbiDirect records to get the individual fields, just like you did for the channel number. You just need to additionally define the number of bits like this: record( mbbiDirect, "ADC:CONVERSION:RESULT:ALERT" ) { field( DTYP, "Raw Soft Channel" ) field( NOBT, "1" ) field( SHFT, "15" ) field( INP, "ADC:CONVERSION:RESULT__ NPP NMS" ) field( FLNK, "ADC:CONVERSION:RESULT:CHANNEL" ) } record( mbbiDirect, "ADC:CONVERSION:RESULT:CHANNEL" ) { field( DTYP, "Raw Soft Channel" ) field( NOBT, "3" ) field( SHFT, "12" ) field( INP, "ADC:CONVERSION:RESULT__ NPP NMS" ) field( FLNK, "ADC:CONVERSION:RESULT:VALUE" ) } record( mbbiDirect, "ADC:CONVERSION:RESULT:VALUE" ) { field( DTYP, "Raw Soft Channel" ) field( NOBT, "12" ) field( SHFT, "0" ) field( INP, "ADC:CONVERSION:RESULT__ NPP NMS" ) } Cheers Florian
On 06/28/2016 12:57 PM, Florian
Feldbauer wrote:
-- ---------------------------------------- | Dr. Florian Feldbauer | | | | Helmholtz-Institut Mainz / | | Johannes Gutenberg-Universität Mainz | | Johann-Joachim-Becher-Weg 36 | | D-55128 Mainz | | | | Office: SB1 / 00-213 | | Phone: (+49)6131 / 39-29608 | ---------------------------------------- |