vultac Posted December 1, 2008 Report Share Posted December 1, 2008 Hi guys, ive been wondering if there is anywhere in labview that i could program something so that the 1st 2bits would stay constant after i apply an addition to the previous set of bits after a for loop everyttime? for eg. (starting bit) (first 2 bits doesnt change) (first 2 bit doesnt change) 00000010 -> 00000110 -> 00001110 ??? Quote Link to comment
Justin Goeres Posted December 1, 2008 Report Share Posted December 1, 2008 QUOTE (vultac @ Nov 29 2008, 06:43 PM) Hi guys, ive been wondering if there is anywhere in labview that i could program something so that the 1st 2bits would stay constant after i apply an addition to the previous set of bits after a for loop everyttime?for eg. (starting bit) (first 2 bits doesnt change) (first 2 bit doesnt change) 00000010 -> 00000110 -> 00001110 ??? The tools you need are in the Programming >> Boolean and Programming >> Numeric >> Data Manipulation palettes. The boolean logic functions (AND/OR/XOR/etc.) will all operate bitwise if you pass in U32/I32/etc. data, and there are also shift and rotate functions. Quote Link to comment
B Chavez Posted December 3, 2008 Report Share Posted December 3, 2008 QUOTE (vultac @ Nov 29 2008, 06:43 PM) Hi guys, ive been wondering if there is anywhere in labview that i could program something so that the 1st 2bits would stay constant after i apply an addition to the previous set of bits after a for loop everyttime?for eg. (starting bit) (first 2 bits doesnt change) (first 2 bit doesnt change) 00000010 -> 00000110 -> 00001110 ??? If you want to leave the lower two bits alone, then simply increment by 4; incrementing by 8 leaves the lower 3 bits alone, by 16 leaves the lower 4 alone, etc. Quote Link to comment
vultac Posted December 3, 2008 Author Report Share Posted December 3, 2008 wow. lol!! smart smart thanks!!! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.