08-09-2023 06:38 AM
Hi all,
I'am creating a DLL by using FPGA Manager Software API in visual studio and its run time library linkage is FpgaManager.dll, whenever I load the DLL it gets loaded in Labview but when I run, Labview gets crashed and says issue with FpgaManager.dll. can anyone help ?
Regards,
Tushar
08-09-2023 09:30 AM
Can you upload the LabVIEW VI that crashes and a comparable program that runs in VS which calls this DLL (in whichever language you're using). If we can compare the "same" relatively small program written in LabVIEW and another language where one works and one doesn't it's much easier to figure out what's going wrong in LabVIEW.
08-10-2023 12:55 AM
Hi jacobson,
This is part of the code which completely works fine in visual studio console application, but crashes in Labview,
saying issue with FpgaManager API.
Regards,
Tushar
08-10-2023 11:00 AM
For initial testing I would run your LabVIEW example outside of a while loop. I doubt this would lead to a crash immediately but the function is creating a memory map and opening every iteration so I don't want to potentially compound issues right now.
My best guess from a quick look is that even though you specified a minimum array size you still need to initialize an array and connect that wire into the input of the buffer.
08-11-2023 04:15 AM
Hi Jacobson,
I have tried running it outside the loop but still Labview crashes and regarding input of the buffer I have commented it and tried but still it crashes.
Regards,
Tushar
08-11-2023 08:25 AM
Hi Jacobson,
Labview is not crashing now because previously I was generating dll and running Labview in different computer, but now both dll and Labview are in same computer.
The issue now is whenever I add mgr.open() in the code(test.cpp) which I have attached previously and run in Labview it throws Error 1097. but in visual studio it is working correctly.
Regards,
Tushar