From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with dll in labview

Problem with dll in labview

We have a problem whith dll in labview.

Description:

1/

We call the DLL "Compteur.V1.3.0.0.dll" to communicate with meter (produced by Sagem) using LabVIEW. The dll does not work in this case and it works perfectly on CVI.

Compteur.V1.3.0.0.dll DLL_P1107.dll calls and callsDLL_P1107.dll P1107.dll

 

2/

We tryed also to send frames directly  with Visa Serial without using the dll and it did not work.

Download All
0 Kudos
Message 1 of 4
(2,236 Views)

Provide some documentation for the DLL, and the header (.h) file with the function prototypes.  Without that information it is impossible to determine if you are calling the DLL correctly from LabVIEW.

 

With the serial code, open the serial port ONCE at the beginning of the code, and close it ONCE at the end.  You will probably never get any bytes at the port immediately after opening it, because the operating system will discard any data received when the port is closed.  Also, are you sure you want to change the bit rate in the middle of the serial communication sequence?

 

Please be more specific than "does not work."  Do you get an error?  Does the code crash?  Does it run, but you get no output?

0 Kudos
Message 2 of 4
(2,218 Views)

I have loaded the DLL in Labview. an error occurred while calling the ASO function Playback of the dll.

Compteur.V1.3.0.0.dll calls P1107.dll

Here is a screenshot of the error:

Download All
0 Kudos
Message 3 of 4
(2,208 Views)

Microsoft Word is not a graphics file format.  Save your screenshot as a PNG (mspaint can do this) and attach the image directly.

 

Telling us that "Compteur.V1.3.0.0.dll calls P1107.dll" is not useful if you do not provide documentation on it.  Do you have the source for Compteur.V...dll?  Which function in P1107.dll does it call?  How does it call it?  What's the function prototype for the call to P1107.dll?  How can we help you if you do not provide enough information to determine if the Call Library Function node is properly configured?

0 Kudos
Message 4 of 4
(2,201 Views)