LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

string to function call

I would like to call any function from an external source command string such as:

example : "anyfunc(2.3,5.5,"hello");

How can I do this in CVI? It should be able to call any external module functions as well.
0 Kudos
Message 1 of 2
(2,777 Views)
You can't do this for a statically linked function. The only way to work around this would be to set up a lookup table for the function name that would give you the function pointer, but dealing with arguments could be complicated.

If you are calling this function in a DLL, then you can use GetProcAddress on the function name to retrieve a function pointer, then call it with that pointer.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(2,777 Views)