LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FPGA Manager

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

0 Kudos
Message 1 of 6
(916 Views)

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.

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 6
(874 Views)

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

 

 

Download All
0 Kudos
Message 3 of 6
(838 Views)

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.

Matt J | National Instruments | CLA
0 Kudos
Message 4 of 6
(807 Views)

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

0 Kudos
Message 5 of 6
(780 Views)

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

0 Kudos
Message 6 of 6
(765 Views)