From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-27-2020 02:22 AM
hi team;
I am facing issue when i am calling a dll LabVIEW crashes. In my dll the functions i am calling it have many supported dlls. I tried with shared library node and tools>import>shared library(.dll) in both LabVIEW crashing. My dll file is in c++, and the functions i am exporting in visual studio, I am getting in lab-view. But after the parameter configuration, When i click OK. LabVIEW not responding and crash without any error message.
I am using visual studio 2019 And LabVIEW 2019.
Here i am attaching VS function calling code and export function code.
And i am placing all supported dlls in the same directory, Where the dll i am created using VS.
07-27-2020 02:46 AM
@Neeraj9001 wrote:
But after the parameter configuration, When i click OK. LabVIEW not responding and crash without any error message.
So it crashes when you click OK in the configuration?
Your screenshot seems to show the VI is running.
This is quite important... Please be precise and accurate.
07-27-2020 02:50 AM
If it hangs when you run the VI, I can only assume getDeviceSerialNumber() is hanging in the dll. Or instantiating Cam.
I don't see how functions that have no input parameters would fail, there's nothing wrong to configure.
Start with a function that doesn't do anything. Or maybe a MessageBox. If those work, the problem is in the DLL (or in the DLL when called from LabVIEW).
07-27-2020 03:06 AM
In the same dll, I tried with simple addition function it working fine.But it is not working for getdeviceserial number.
07-27-2020 03:32 AM
Hi sir;
We are working on two systems, In one systems LabVIEW getting not responding when we click ok button. Another system when we run the vi LabVIEW not responding.
07-27-2020 06:19 AM
@Neeraj9001 wrote:
Hi sir;
We are working on two systems, In one systems LabVIEW getting not responding when we click ok button. Another system when we run the vi LabVIEW not responding.
Not responding? Of a broken run arrow?
It's still not clear at all. You're showing a broken VI. That's not 'not responding', it's a pretty clear response.
If you can't run the VI a resource it missing or borken. It could be a 64 bit dll and 32 bit LabVIEW, or vice versa. Or the dll is missing a resource\dependency and can't be loaded. Or the function is missing.
If you can run the VI, and it hangs, something is wrong with the dll. As you have 0 parameters in, I think the problem is in the dll.
I never have seen LabVIEW hang when pressing OK in the configuration window, so I can't help you there. I guess it can happen if the dll uses DLL_PROCESS_ATTACH, DLL_THREAD_ATTACH, DLL_THREAD_DETACH, DLL_PROCESS_DETACH to call something it shouldn't.
07-27-2020 07:59 AM
I got the solution.
07-27-2020 08:02 AM
If you post it, you might help someone...
07-27-2020 10:48 AM