To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to simulate a quadrature encoder with LabVIEW FPGA.
Description
This VI Simulates the output of a 512 pulses / rev quadrature encoder with 40 MHz FPGA Top Level Clock.
To simulate encoder with different pulses per revolution change the "encoder constant" (see Block Diagram) that is calculated by:
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Note: Find more detailed information about Sine Wave Generator in LabVIEW help or here.
Starting with LabVIEW FPGA 2013 you can also use the Desktop Execution Node to simulate this VI.
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
I am interested in viewing the "Simulate Encoder.vi" that you have attached, as I am doing something similar for a school assignment.
But everytime I try to open the vi in labview version 2010. It keeps on asking to find another vi called "nirviSimLinearInterp.vi".
Is this a vi that comes normally within the labview library, or is it another file that needs to be created or downloaded.
Any help will be much appreciated.
thank you
Yane