09-02-2013 02:31 AM
I want to make a vi 12 bit decimal to binary converter with 8 bit MSB and 4 bit LSB
Thanks in advance
09-02-2013 03:28 AM
There are no 12 bit numbers in modern CPUs. Numbers are 8, 16, 32, 64 or 80 bit usually.
That being said, your number is already a subset of another number (most likely 16 bit).
Using the "Split Number" function in the Data Manipulation palette, you can split it to two 8bit numbers.
It is not possible to split a number to 4 bit.
Norbert
09-02-2013 03:30 AM
09-02-2013 03:36 AM
Hehe, good example, Gerd.
Working with "masking" (the AND-operation) will reduce the amount of significant bits to a desired amount. Still, the number itself is of higher resolution.
So when using this approach (which is the only possible), you have to keep in mind that computing values with that "12bit" number might require some additional masking functions (e.g. addition, multiplication, ..)
Norbert
09-02-2013 03:48 AM
Will You Please upload The Vi
09-02-2013 03:57 AM - edited 09-02-2013 03:59 AM
Hi DK,
this "VI" consists of just 2 basic functions and 2 constants, you should be able to recreate it in a minute.
And it's a snippet anyway...
09-02-2013 04:32 AM
Hi GerdW
sorry i dont have much experience in labview. I didnt able to fix the constants
09-02-2013 04:34 AM
09-02-2013 04:51 AM
Thanks I am trying ..but i didnt able to enter the value
09-02-2013 04:52 AM - edited 09-02-2013 04:52 AM