User | Kudos |
---|---|
11 | |
7 | |
3 | |
2 | |
2 |
Logical shift in LabVIEW discards the shifted out bit. Logical shift functions in assembly labguage settings shift that value to an overflow bit register allowing the bit in question to be tested and program flow to be altered.
This kind of function is useful when dealing with low level protocols at the bit level, or dealing with digital devices that have a parallel interface.
I suggest the logical shift function have an additional output that contains the boolean value of the bit just shifted out of the number.
Logical shift should be able to output a single boolean, or an array of boolean. For the single case, the value would be the last bit shifted out with other bits being lost. For the array output, all bits would be captured with the first bit shifted out being the 0th index of the array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any idea that has not received any kudos within a year after posting will be automatically declined.