Showing results for 
Search instead for 
Did you mean: 

Testbench VI

Go to solution



I'm working with cRIO and I want to simulate sinus signal on FPGA input. I read this tutorial , bud I don't understand how to simulate sinus signal on my FPGA Input.


The main problem is how to creat a Testbench VI that simulate sinus signal.


Can someone help me?



0 Kudos
Message 1 of 9



The FPGA_VI you created reads an input value every 100ms.


I guess what you are willing to do is generate a signal (use an output)


Go to palette: FPGA MathAnalysis then generation then sine wave! Configure the function (express VI) then wive the function output to the Output node!




Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 2 of 9

I'm wanting to generate sinus signal in Testbench VI, and read him with FPGA VI.


Something like in this attachment.



0 Kudos
Message 3 of 9

Hi blaza,


you can find the example in Example Finder. Just search for Custom VI for FPGA IO-Dynamically generated-RSeries.lvproj. Once you open the project, right click on FPGA target in the project tree, go to properties. In the tab Debugging you will see Execute VI on Development Computer Simulated I/O, you have to choose the right path to the VI: Custom VI for FPGA IO - Dynamically


Then you can run the Read Sine Wave FPGA VI. You will see the simulated sinewave.


The example is written fro R-series card. In the case you would like to change the target for cRIO, follow this guide:

I hope this helps.


Rostislav Halas


0 Kudos
Message 4 of 9



First of all thanks for helpI. It works!


Do you maybe know how can we create two simulated analog outputs (two sinus signals)? In this example we have only one simulated output. I tried to copy that part of code but it doesn't work.






0 Kudos
Message 5 of 9
Accepted by blaza



you just have to add one more case to the structure I/O Item Name Case Structure. Now you have just Analog In0, the I/O read function reads I/O on fpga so basically, you have to create case also for AnalogIn1 for  example, where yuo will do the same as for AnalogIn1. Context help for the VIs in the example may help you.

Try it, it should work.


Rostislav Halas

0 Kudos
Message 6 of 9



0 Kudos
Message 7 of 9

Hello everyone, I've the same problem of Blaza but I cannot find the example in the Example Finder. I've Labview 2013.Any help?

0 Kudos
Message 8 of 9

I'm sorry,


I've to reformule the question> I've found the example but it doesn't work. My module's output is always the same value 

Download All
0 Kudos
Message 9 of 9