LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

intptr use in lab view

Hi Guys

 

I am trying to use test stand as a sequencer for a camera module test (>5Mpix). My .dll for the camera enable to store an image inside the memory. I am using  .net allocCo TaskMem to allocate the memory (returns an intptr), after this store the image to the memoryI would like to hand over the intptr pointer to a labView VI to do image processing. There I have the problem, I can not get the data the pointer points to into an labView array.I hand over the pointer as int32  to the VI, convert it to a intptr again with .net constructor node system.intptr and input it to a .net Marshal.copy(inptr, byte, int32, int32) and copy it to an array. this does not work and it seems to me that the pointer does net get understood by labview. 

 

I hope I did not confuse you guys too much and you understand my problem. 

 

Gerhard

0 Kudos
Message 1 of 2
(3,460 Views)
But why are you using .net for this?

Wouldn't it be much easier to: allocate a large array in LabVIEW. Pass that
one to the dll. Fill the memory in the dll. Read it as an array in LabVIEW?

I can't help you with the .net stuff.

Regards,

Wiebe.


0 Kudos
Message 2 of 2
(3,423 Views)