LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for VI where i can convert covert a float number to Q 11.5 representation

Solved!
Go to solution

looking for VI where i can convert covert a float number to Q 11.5 representation and what exactly  Q 11.5 representation means.

 

Kindly help me on the same.

0 Kudos
Message 1 of 6
(3,065 Views)

@mahadev wrote:

looking for VI where i can convert covert a float number to Q 11.5 representation and what exactly  Q 11.5 representation means.

 

Kindly help me on the same.


Really?  A Google search for "q 11.5 notation" brought this up as the sixth hit:

 

http://en.wikipedia.org/wiki/Q_%28number_format%29

 

That will tell you just about everything you need to know.

 

PS - Thanks for making me look it up - I never knew what  q number format was!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 6
(3,051 Views)

Thanks for the reply ..

What i understood :

 

 To convert float number to Q11.5 notation,

in this case m=11 and n=5.

According to this if my float value is 10.1235 then i need to multiply 10.1235 with 32(2^n=2^5) so the value will be 324.

 

is it right process ?

kindly clarify me

 

 

Thnaks

Mahadev

 

 

 

0 Kudos
Message 3 of 6
(3,038 Views)
Solution
Accepted by topic author mahadev

Appears to be right, but don't forget to round to the nearest integer.

 

 

http://zone.ni.com/reference/en-XX/help/371361H-01/glang/round_to_nearest/


 

 

 

 

0 Kudos
Message 4 of 6
(3,010 Views)

that i have done..

 

Thanks  a lot

0 Kudos
Message 5 of 6
(3,006 Views)

@mahadev wrote:

that i have done..

 

Thanks  a lot


Very cool - well done!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 6 of 6
(2,993 Views)