LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling LabView FPGA Host VI from CVI application

Hi, I have a FPGA project that I built into a .dll so that I can call it from a CVI application.  This is the first time that I've tried this method of converting to CVI so I'm wondering if it will work.  I'm familiar with the C API module to call directly to a FPGA target and I know that it works.  However, it's often easier to create a host VI instead to interface the FPGA target.  Therefore, building a .dll and calling the host VI from CVI seems like a better route if it works.

I attempted to implement this within our application and everything builds fine but so far it doesn't work.  When I run the host VI out of LabView it works great and returns almost immediately.  When I make the function call in CVI to execute the same VI, it attempts to execute but never returns.  No errors or anything, just seemingly an infinite loop.  Is there likely just a mistake in the implementation or is this methodology unlikely to work for some inherent reason?  

0 Kudos
Message 1 of 2
(3,071 Views)

rreis,

 

What hardware are you working with? I don't have a lot of experience with interfacing CVI with FPGA code, but I know it is recommended to use the C API. Others have had similar problems trying to take a VI that opens an FPGA reference and building it into a C dll. Can you post your LabVIEW code here?

 

0 Kudos
Message 2 of 2
(3,044 Views)