11-30-2014 05:23 AM
Hello. I'm new to integrating VHDL code in a labview project so I'm trying to create a very basic implementation.
I have the following code in an IP integration node:
library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity main is Port ( button : in STD_LOGIC := '0'; led : out STD_LOGIC); end main; architecture Behavioral of main is begin led <= button; end Behavioral;
Which exists in the attached subVI
Compilation works fine, but when trying to run and deploy the vi to a myRIO I get the following error.
Error in IP integration node:
Possible reason(s)
Failed to call Windows API. If this error persists, contact National instruments technical support.
The subVi containting the IP integration node is put into the RT Main.vi automatically created by the myRIO fpga template.
As I said, I'm still very unsure about how to include VHDL code in labview, so if anyone knows about some basic tutorial then please link one here.
12-01-2014 12:51 AM
It sounds like the problem is not with the IP but with the deploy process, xilinx tools, or any number of other things (there are obviously no windows APIs on your fpga target) so it might be better to give a screenshot of the error.
To answer your other question about a tutorial, it just so happens that there is one tucked away in the help:
http://zone.ni.com/reference/en-XX/help/371599K-01/lvfpgaconcepts/integrating_hdl/
and here:
http://zone.ni.com/reference/en-XX/help/371599K-01/lvfpgaconcepts/fpga_clip_tutor_intro/
12-01-2014 09:10 AM
Hi mcarlie,
As Dems mentioned, it would be great if you can send a screenshot of the error with the error code so that we can investigate further into the issue.
Thanks,
GajanS
12-01-2014 10:31 AM
Thanks for the replies. Turns out that the IP integration node needs to be in the FPGA default VI in order to run properly. I tried putting it in RT main.vi since I couldn't figure out how to interface with the myRIO leds and button in the FPGA vi.
12-01-2014 10:38 AM
Hi mcarlie,
Thank you for updating us and I'm glad you solved the issue.
GajanS