10-08-2013 09:09 AM
Hi
I want to represent a 2 digit number into 12 bit binary(boolean array of 12 bit)
ie. 14.4444 to 111111111111
7.2222 to 100000000000
Thanks in advance
with regards
DK
10-08-2013 09:09 PM
Can you explain how to translate the number into boolean in detail?
10-08-2013 11:25 PM
I want to Generate a 12 bit binary data on the DAQ card (which is having a 12 digital I/O) for relation v=0.17404f-11.3191. where f varies from 70 to 148 with decimal places
10-09-2013 07:24 AM
Ok, so 14.4444 is your max number. So what you need to do is (V/14.444)*2^12 = (V/14.444)*4096 = V*283.5779562448, where V is your decimal number. From there, you may have to do a round to make it a whole number of bits.