LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

passing pointers in Labview

Hello All,
I have a dll and one of the function looks like this:
Parse_Data(BYTE* input, BYTE *result)
where:
-input points to a byte array filled with parameters.
-result points to a byte array where the results will be dumped.
Any ideea how to pass the data from parameters array to dll and how to get the results from dll and display them into an array?
Thank you for your help.
0 Kudos
Message 1 of 2
(2,723 Views)
I would suggest using the Call Library Function Node.vi. I'm attaching a document from NI's website entitled "Using External Code in LabVIEW." I would suggest taking a look at this. It's helped me quite a bit in the past. Here are a few important things to watch out for. Initialize the array before you send it to the Call Library Function Node.vi. Also, if you are going to change the size of the array in your DLL, you need to use a CIN instead and use the appropriate CIN functions. This is all explained well in the pdf file, so this should help you out.
J.R. Allen
0 Kudos
Message 2 of 2
(2,723 Views)