11-29-2012 11:35 PM
How i can pass a FPGA handle from a dll written in c to LabView? I know you can define it as a global in c and pass it through multple files but i dont know the process to pass it in labvew from C. The issue is that when we call a read or write function within the dll in order to get a handle we have to open and close the board.These functions are called multiple times and in the past this worked really well for us but recently we noticed a memory leak when we opened and closed the board multiple times. This is bad, so any help will be greatly appreciated.
11-30-2012 12:17 AM - edited 11-30-2012 12:17 AM
So you are "opening" the (custom?) FPGA board with a call to a DLL. But the DLL doesn't pass a reference out to the caller (LabVIEW)?
If you want the DLL to pass the reference (handle) then you have to modify the DLL. Who wrote the DLL? This is not LabVIEW FPGA, right?