LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing pointer to a dll

Dear champs,
 
This is my requirement.
 
   I have five U8 inputs. The address of first data should be passed in as input to a dll. Show me some screenshot of how to establish it.
 
Thanks,
Mathan
Message 1 of 42
(4,758 Views)

Hi mathan,

create an input argument with type "array", datatype "u8" and array format "array data pointer". Connect your array to the input. I hope this helps.

Mike



Message Edited by MikeS81 on 04-28-2008 09:10 AM
Message 2 of 42
(4,750 Views)

Dear mike,

So what i have to declare in the dll parameter tab for that input? is it array data pointer?

If so will it take the address of first data?

Thanks,

Mathan

Message 3 of 42
(4,737 Views)

Dear mike,

Shall i use cluster to pass the values? I saw somewhere on forums but unfortunately, not able to fully read about it.

Thanks,

Mathan

Message 4 of 42
(4,728 Views)
Shall i declare dll parameter like this
 
Thanks,
Mathan
Message 5 of 42
(4,727 Views)
Hi mathan,
i think this should work, too.
Mike
Message 6 of 42
(4,725 Views)

Hai mike,

I tried both the way. But its showing some problem with dll.

While running with highlight execution it shows some 1097 error when execution crosses CLN block.

How to proceed further? Is it re-traceable?

Thanks,

Mathan

Message 7 of 42
(4,722 Views)

Hi mathan,

did you try it with the array of u8 and "array data pointer"?

Mike

Message 8 of 42
(4,699 Views)

Dear mike,

see the attachment.

Mathan

Message 9 of 42
(4,697 Views)
What is your function prototype? What does the function do?

You may want to take a look at the example "Call DLL" that ships with LabVIEW. Help->Find Examples, then search for "DLL".
Message 10 of 42
(4,667 Views)