LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Allocating memory

I am trying to allocate a block of memory to act
as the memory address to output data from a frame
grabber I am trying to interface. Currently I am
calling GlobalAlloc in Kernel32.dll and looking
at the returned address using the OutPort vi.
I've set the flags in the Global Alloc to give me
a fixed memory address and fill it with zeros.
However when I look at the address with outport
then it hasn't been reset to 0. Any suggestions
as to what could be the problem or alternative
ideas for allocating memory would be welcome.

David


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(2,849 Views)
The outport function will address IO port address space and not memory
address space.
In order for LabVIEW to access the type of memory you are refering to, you
must use a DLL call.

Stu

wrote in message
news:90livc$86f$1@nnrp1.deja.com...
> I am trying to allocate a block of memory to act
> as the memory address to output data from a frame
> grabber I am trying to interface. Currently I am
> calling GlobalAlloc in Kernel32.dll and looking
> at the returned address using the OutPort vi.
> I've set the flags in the Global Alloc to give me
> a fixed memory address and fill it with zeros.
> However when I look at the address with outport
> then it hasn't been reset to 0. Any suggestions
> as to what could be the problem or alternative
> i
deas for allocating memory would be welcome.
>
> David
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Stu
0 Kudos
Message 2 of 2
(2,849 Views)