hi,
in the website of streamdevice, it says: Normal OperationDepending on the format type, different record fields are used for output and input. The variable x stands for the written or read value. - DOUBLE format (e.g.
%f ): - Not allowed.
- LONG format (e.g.
%i ): - If
MASK==0 (because NOBT is not set): - Output:
x=VAL Input: VAL=x
- If
MASK!=0 : - Output:
x=RVAL&MASK Input: RVAL=x&MASK
MASK is initialized to NOBT 1-bits shifted left by SHFT .- ENUM format (e.g.
%{ ): - Not allowed.
- STRING format (e.g.
%s ): - Not allowed.
In my case, I use mbbiDirect and get a value as 0x29 (b"0010,1001") in VAL field. If I want to mask it with a value 0xC1(b"1100,0001"), how to set NOBT/SHFT field? Thanks a lot in advance.
Best wishes
Geyang 2015-07-19
- Replies:
- RE: streamdevice mbbiDirect mask Mark Rivers
- Navigate by Date:
- Prev:
Re: xspress3 Matt Newville
- Next:
RE: streamdevice mbbiDirect mask Mark Rivers
- 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
- Navigate by Thread:
- Prev:
Re: xspress3 Adam Bark
- Next:
RE: streamdevice mbbiDirect mask Mark Rivers
- 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
|