LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function returning a pointer to doubles

Hi,

Say, I have a DLL which exports function

int getdata(int numdatapoints, double * data)

I would like to use a Call Library function to call getdata and getting the
data (* data) into a Labview array of type double. Is this supported by the
Call Library function, or do I have to use a CIN function?

Thanks,

Michael
0 Kudos
Message 1 of 3
(2,501 Views)
In the meantime I found out, that you can specifiy a parameter as Array with
format Array Data Pointer and additionally defining the Dimension. But what
do you do when the dimension changes from one call to the other. Is there a
way to define the Dimension dynamically during the execution of the VI
containing the Library Call function?

Thanks,

Michael


Michael Vetsch wrote in message <8lugo2$2q9$4@news.mathworks.com>...
>Hi,
>
>Say, I have a DLL which exports function
>
> int getdata(int numdatapoints, double * data)
>
>I would like to use a Call Library function to call getdata and getting the
>data (* data) into a Labview array of type double. Is this supported by the
>Call Library function, or do I have to use a CIN function?
>
>Thanks,
>
>Michael
>
>
0 Kudos
Message 2 of 3
(2,501 Views)
Problem solved. I found an application note on NI's Web page. I've got it
working.

Michael


Michael Vetsch wrote in message <8lugo2$2q9$4@news.mathworks.com>...
>Hi,
>
>Say, I have a DLL which exports function
>
> int getdata(int numdatapoints, double * data)
>
>I would like to use a Call Library function to call getdata and getting the
>data (* data) into a Labview array of type double. Is this supported by the
>Call Library function, or do I have to use a CIN function?
>
>Thanks,
>
>Michael
>
>
0 Kudos
Message 3 of 3
(2,498 Views)