I am making a wrapper for C++ DLLs. In the function I need to return a vector<double>
. I studied the documents and read that we can only return int
and string
. For returning any other variables we need to pass it as an argument. But the available variable types are Numeric
, String
, Array
. So how can I get vector<double>
from the native function in LabView.
In C++ vector is stored as an array, if v is vector <double>
first element address is &v[0]
. In LabVIEW CLFN node allows you to pass an array by pointer or by handle. So, you have 3 solutions: