From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Initialization VI for Look-Up Table 1D Express VI FPGA in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW FPGA Module
  • LabVIEW

Code and Documents

Attachment

Overview

This code allows the user to customize the Initialization VI when configure Look-Up Table 1D Express VI.

 

Description

Look-Up Table 1D Express VI contains a LUT for an arc sine function. The LUT takes a value for sin(theta) in the range of 0 to 1023 which corresponds to values of sin(theta) between -1 and 1. The output of the LUT is the value of theta between -512 and 512 which corresponds to theta values between -pi/2 and pi/2. The image below shows the block diagram example using the LUT.

If anything needs to be changed with respect to the domain, range or resolution of the LUT, this VI can be used to initialize the LUT with the proper values.

 

Requirements

LabVIEW 2012 (or compatible)

LabVIEW FPGA 12 (or compatible)

 

Steps to Implement or Execute Code

  1. Set Memory Block Size
  2. Run VI
  3. This VI could be call from Look-Up Table 1D Express VI

Additional Information or References

2383.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.