Jump to content

call library function node error 13


Recommended Posts

Error 13 (you can find error code descriptions under Help > Explain Error, or by right-clicking on an error cluster code and choosing "Explain Error") means:

Possible reason(s):

LabVIEW: File is not a resource file.

=========================

NI-488: Shareable board exclusively owned.

It fails when you run it, or is the run arrow broken?

Link to comment

We just upgraded to LV 2010. Now one of our VI's does not function. It calls a custom dll with the call library function node VI. It now reports error 13. The path to the dll is correct. Does anyone have any suggestions?

John

One possible problem might be that the DLL is a 32bit DLL and you were using it in the 32 Bit version of LabVIEW and now have upgraded to LabVIEW 2010 64Bit. LabVIEW only can call DLLs compiled for the same environment as it is itself. If this is the case you have two options:

1) Install LabVIEW 2010 32Bit which will work fine on a 64 Bit Windows version

2) Recompile your DLL for Windows 64Bit (and review it for any bitness issues)

This review would encompass things such as that the Call Library Node is configured right: Windows 64 bit uses obviously different pointer sizes which could be a problem if you have configured pointer parameters to be treated as integers, but using the new pointer sized integer type since LabVIEW 8.5 would then be the right thing instead of explicit 32 bit or 64 bit integers

Also there is a difference in size between long: Windows treats longs always as 32 bit while everyone else treats a long as 32 bit on 32 bit platforms and 64 bit on 64 bit platforms. Use of long long instead in the C code avoids that problem as it is always 64 Bit but it is a C99 feature only so it may have problems with older compilers and also C++ compilers who don't support the upcoming C++0x standard not being able to recognize it.

Link to comment

We just upgraded to LV 2010. Now one of our VI's does not function. It calls a custom dll with the call library function node VI. It now reports error 13. The path to the dll is correct. Does anyone have any suggestions?

John

Same problem here. After updating LV to LV2010 (32 Bit) and MS Visual Studio 2010 my dll causes error 13. Anybody fixed that prob?

thx

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.