Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Does The Scale By Power Of Two.vi Not Return A Type Double Even Though I Have A Double Type Indicator?

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I am trying to make the Scale By Power Of Two.vi calculate 1*2^-4, which should equal 0.0625. However, I keep getting a zero even though I have a double indicator and 6 significant digits specified. How do I make the Scale By Power Of Two.vi calculate the correct result?

Solution: To receive a type double output from the function, the 'x' input has to be of type double. Therefore, even though the 'x' input may always be an integer, it has to be of type double in order for the function to output a type double.

Related Links:

Attachments:





Report Date: 11/01/2004
Last Updated: 11/02/2004
Document ID: 3F0G3OY7

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit