ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading encoder

Hi!

I have a really easy questiion but I'm new to Labview and have difficulties solving it. I hope sb can help me.
The problem:

The information I read from the encoders gives me an unsigned byte(8 bit integer) . depending on if I want to read MSB or LSB I get different bytes.

I have 2 buttons which indicates if I should get a MSB or LSB information out from encoders.
I want to use a case to be able to do some opperations on each one of the bytes depending on if it is a MSB or LSB.

How can I specify the cases so the program understands when MSB is read it should do the opporations I want it to do and the same for LSB?

For example when a MSB is read it should read the 8 bits  and it should take away the last 3 bits from the left side of the byte and give me an 5 bits.

I use PCI-6221 and labview 8.2

Thanks
Mehmet

0 Kudos
Message 1 of 2
(2,415 Views)
Duplicate post http://forums.ni.com/ni/board/message?board.id=170&message.id=239378
Andrew Alford
Production Test Engineering Technologist
Sustainable Energy Technologies
www.sustainableenergy.com
0 Kudos
Message 2 of 2
(2,389 Views)