Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69621

passing image from VB6 to LabVIEW DLL

$
0
0

I have an image processing algorithm that I have implemented in LabVIEW that needs to be callable from Visual Basic 6. I don't have much experience working with DLL's, but I have managed to make some simple DLL's in LabVIEW that can do basic math operations (e.g., adding two numbers together) and which I successfully called from VB6. Right now, I'm hitting a stumbling block regarding passing a greyscale image to the LabVIEW DLL. What would be the most efficient way of implementing this? Originally, I had planned to pass a two-dimensional array to the DLL, but it seems like passing 2d arrays is tricky after I read this: http://digital.ni.com/public.nsf/allkb/EF28C424B039FA9E86256B6D007D3761?OpenDocument.

 

Is there a way of loading a picture in VB6 in such a way that the LabVIEW DLL will accept it as a NI-VISA image? Or would reshaping the data into a 1D array and passing that be the best way?

 


Viewing all articles
Browse latest Browse all 69621

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>