Example Code

Qoutient and Remainder inside Single cycle loops

Code and Documents

Attachment

Download All

Overview

A Qoutient and remainder calculation for use inside (and outside) Single-cycle loops.

Description

It works exactly as the one supplied with LabVIEW, with additional terminals to control Input Valid and Output Valid.

Steps to Implement or Execute Code

  1. Wire a number to N.
  2. Wire divisor to D.
  3. Wire True to Input Valid.
  4. Execute 32 times in a loop or until Output Valid is True.

Or see the Divisor Example.vi

Requirements

LabVIEW 2013 FPGA (for Register resource).

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

Contributors