NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Four Channel Gain Function

VERSION 4

Created on: Aug 21, 2007 2:37 AM by BetaCommunityContent - Last Modified:  Sep 24, 2007 10:17 PM by BetaCommunityContent


REQUIREMENTS:
Application Software: LabVIEW FPGA Module
Driver Software: NI-RIO 2.0

 

Integer math scaling of a four channel array in LabVIEW FPGA.

     

This example uses integer math to scale an array of four input channels in a LabVIEW FPGA application.  This example will not work within a Single-Cycle Timed Loop, as it uses a Single-Cycle timed loop to index through different channels.Using integer math scaling, the gain value (in percentage) is multiplied by (220)/100 = 10486.  The scaled gain value is then multiplied by the corresponding channel value, and the result is then multiplied by 2(-20).This method of multipling and then dividing by a large power of 2 is a common way of working with integer math in LabVIEW FPGA.

 

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...