LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling DLLs....SOS

Hello there

Am trying to call some third party DLLs from Labview. Whenever I make a VI and try to run it its either crashes windows or labview. Here are some sample function prototype am using. Anybody can tell me how to make it work succesfully? Shud I set it for "Run in UI Thread" or re-entrant? Should the calling conventions be C type? What should I set for ByVal parameter type? String? Am new to labview and I need some help. Again I am using an evaluation version of 6.0i. Will it work for labview 4? How can I call a 16 bit dll in labview? Ooops too many questions.. Sorry but i need some help!!!!!!

Declare Function cbErrHandling% Lib "XXX.dll" (ByVal ErrReporting%, ByVal ErrHandling%)

Declare Sub YYYY Lib "XXX.dll" (ByVal Device%, ByVal bo
ardname$)
0 Kudos
Message 1 of 2
(2,603 Views)
Many of the questions you are asking depend on how the dll was compiled. When it was made the calling convention was set as well as all the parameters that are to be sent to the dll. Any additional information from the creater of the dll would help you out. As a rule of thumb I use "Run in UI Thread". There are many times (depending on how the dll was coded) where running the dll re-entrant will spin off errors.

This might not be the most helpful information but any insight you can gain about the dll function calls will go a long was to getting your application running.
0 Kudos
Message 2 of 2
(2,603 Views)