LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set an arbitrary input to check if code is working

Hi,

I am dragging and dropping inputs from my project explorer to fpga vi. There is no crio though I selected new devices rather than existing devices while setting up the project. In order to complete my code and then plug in crio , Is it possible to set an arbitrary input to my dragged and dropped inputs, develop all code and then plug in crio.

 

One way is to click right click FPGA>>execute vi on>> development computer with simulated i/o. This indeed save development time as one doesn't have to compile fpga with every change. But I am after setting the inputs to lets say a digital pulse signal than develop all code on the basis of this digital pulse signal and then plug in real crio and sensors.

Many thanks for help

Best regards

 

 

0 Kudos
Message 1 of 4
(2,572 Views)

You need right-click on the FPGA target, goto Properties and then choose Debugging. In the Debugging Properties page, select Use Custom VI for FPGA I/O  from the Execute VI on Development Computer with Simulated I/O  pull-down menu. Have a look at:

Tutorial: Creating Test Benches (FPGA Module)

 

and go to the Testing the FPGA VI on the Development Computer with a Custom VI section.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 4
(2,570 Views)

This seems pretty useful. The test bench I would like to create is digital signal on FPGA I/O. In custom vi there're two controls data from node input terminal and data to node output terminal.

Shall I replace the data from node input terminal with create signal pallete as shown in attachment. If so, what is the replacement for data to node output terminal.

Many thanks! I dont need to test the output tho. I am only creating front panels.

Best regards

 

0 Kudos
Message 3 of 4
(2,551 Views)

Hi,

I got through the first problem- created custom vi, obtained digital signal from create signal function, ran vi and got digital signal- Great !!

When I went back to fpga, set it to get signal on input node from custom vi and ran the fpga vi. I got error saying contact ni.

 

Please find attached my custom vi and fpga vi. I would like to have digital signal on input node. Also I wonder if there's a digital waveform chart which charts the digital signal continuously.

 

Ta

 

Download All
0 Kudos
Message 4 of 4
(2,539 Views)