LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL direct memory interface

I am using Labview 5.1 on Win95 just to interact with a DLL that I am developing.
Using multithreaded VIs so that I can call the DLL using a pointer to an
array as an argument and then interact with the DLL routine by watching and
manipulating the values in the array. I read someplace that by not wiring
the return side of a CIN for an argument it would not create a copy of the
argument for the call, using a pointer to the original data itself for the
argument and making it possible for the called routine to change the data
even before it returns. That's what I want, that and to be able to manually
change the registers that my DLL routine sees. Unfortunately it seems that
if I don't wire the return side of the block that it
won't change the original
data at all, and if I do wire the return side it updates the original array,
but only when it returns, and any changes made manually to the array on the
front pannel are errased when the DLL routine returns. Is there maybe a
problem with passing a live pointer like that to a DLL that would not be
encountered with the CIN?
0 Kudos
Message 1 of 1
(2,328 Views)