From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
11-30-2015 01:47 PM
Hi, I want to use Labview to receive a 1D array from a dll. I can find the "array Data Pointer" in the input settings, but in the "return type" I could not find the array option. So how should I do to return the 1D array?
Solved! Go to Solution.
11-30-2015 02:09 PM
It does not return array directly, only pointers in parameters.
Connect array to the parameter input, it will be filled on the output. LabVIEW gets array pointer, passes it to the dll itself, inside the node. Depending on DLL type you may need to preallocate array (initialize array with enough elements) to fit output data.
11-30-2015 02:23 PM
Could you give me a simple example of it please? I'm a little confused.
11-30-2015 02:36 PM
Help -> Find Examples -> Call DLL.vi has examples for all data types.
11-30-2015 02:42 PM
I'm using Labview 2015 and I could not find the call dll.vi in the "example search". Can I download it somewhere?
11-30-2015 03:07 PM
Looks like it's now named "External Code (DLL) Execution.vi".
If you browse to it, it's under the main heading of "Communicating with External Applications" and the sub-heading "Using External Code".
Run it, scroll to the bottom of the list, double-click "1D Array".
11-30-2015 03:09 PM
hmm... i would be very surprised to know they really removed such an example.
Call Native Code.llb - > call dll.vi.