LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling dll created with C++

I have a VI where I need to call dll created with C++. I am getting
the error message: "An exception occured within the external code
called by a Call Library Node. This may have corrupted Labview's
memory .... " Does that mean that there is an error in the external
code? The parameters of the dll are DWORD, WORD and BYTE. I am wiring
I32, I16 and I8 controlls respectivelly. Is that correct?

Thanks for help.
Ladislav
0 Kudos
Message 1 of 4
(2,971 Views)
If your dll give you some data at an output, you have to wire a constant at
the input. The constant you need to reserve memory for the output data. If
you have an output array you have to wire to the input an array constant
with the maximum number of element you expect at the input.

Niko
0 Kudos
Message 2 of 4
(2,971 Views)
Didn't help. I still get the same message. However, I noticed that the
function which I call does something (initializes the RS232 port). The
function returns 16 bit integer value (0 or 1). I have wired 16bit
Integer constant as input and indicator as output. Any idea?

Thanks
Ladislav

"Niko" wrote in message news:...
> If your dll give you some data at an output, you have to wire a constant at
> the input. The constant you need to reserve memory for the output data. If
> you have an output array you have to wire to the input an array constant
> with the maximum number of element you expect at the input.
>
> Niko
0 Kudos
Message 3 of 4
(2,971 Views)
I am having the same problem. I noticed that it has been a year,
wondering if there is any progress? Other answers? I was told to use
unsigned 32 and I still get the same error.

dave
0 Kudos
Message 4 of 4
(2,970 Views)