Hi, I have a dll file in which there are two DLLEXPORT functions. However, one is a callback function called by the other function. The callback function stores an array. Is it possible to pass this array out into labview by using this dll?
Basically I have a structure like this
void DLLEXPORT FrameStreaming()
{
Frame frame;
void StartStreaming();
void Frame_queue(Callback(frame)); //When queue is ready, callback function is called to retrieve the frame by Frame_queue function
}
void DLLEXPORT Callback(Frame frame)
{ int array[240][240] = frame.pixelValue; //pixel value is in the frame whose data type is Frame structure.
}
But if these functions are exported as dll library, in Labview, I don't know how I can get the array out. Seems in every call library function node, I can only get out what passes into the node as parameters/arguments or the return value of a function.
Is there a way to get around it or am I implementing the dll in a wrong way? Any guidance is very much appreciated!
Thank you!
Best,
Charles