LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to return an array of float from a DLL?

I am trying to access a PCI device, via a DLL, that returns an array of
float from a DMA call. I open up the Call Library function and find that
there is no pointer-type return. Can I use a numeric type for the address of
the array? How will labVIEW know that each element is 4-bytes wide and not
one or two? Is there a way that I can dynamically size an array in my DLL
and return it without over writing other data? How can I return multiple
pieces of data, like the array and an error code? As far as I can tell,
there is no way to return a structure....or is there?

Damn.....So many questions, so few answers 😮

Thanks


Duane
0 Kudos
Message 1 of 2
(2,634 Views)
Read LabVIEW CIN reference manual in your installation or LV CD. The all
answers in it.

Remove NS in address to reply wrote:
>
> I am trying to access a PCI device, via a DLL, that returns an array of
> float from a DMA call. I open up the Call Library function and find that
> there is no pointer-type return. Can I use a numeric type for the address of
> the array? How will labVIEW know that each element is 4-bytes wide and not
> one or two? Is there a way that I can dynamically size an array in my DLL
> and return it without over writing other data? How can I return multiple
> pieces of data, like the array and an error code? As far as I can tell,
> there is no way to return a structure....or is there?
>
> Damn.....So many questions, so few answers 😮
>

> Thanks
>
> Duane

--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
0 Kudos
Message 2 of 2
(2,634 Views)