/*draven*/ wrote:
> Hello everybody!
> I have to pass a value from a dll to labview.
> I can pass a value but it's wrong:
> I have to mesure a voltage from a device which is build by my society.
> When I use my CVI software, the function I use return a good value
> (verify whith a multymeter).
> I use this CVI code to build my dll and I want to have this value
> under labview. there is no problem to pass value from labview to
> function of my dll but in the other way it's wrong...
Are you defining that value as a pointer to your datatype? That is the
only way you can pass data back from a function to its caller in the
parameter list.
Then you have to make sure to configure the CLN to use the right numeric
datatype and select to pass that value by reference (as
a pointer) so
LabVIEW creates a pointer to the actual data storage location to be
passed to the DLL so that the DLL can fill in that location.
Rolf Kalbermatter
Rolf Kalbermatter
My Blog 
DEMO, Electronic and Mechanical Support department, room 36.LB00.390