07-11-2011 10:59 AM
If you are still looking for a direct solution, one more try... my previous attempt with the strings probably failed when LabVIEW encountered the first NULL value in the data and cut the string short at that point. See if this fixes it, by converting to an array of U8 first. If not, it is possible to use DSNewPtr, as in my first reply, to duplicate the C example code, but that is more complicated.
07-11-2011 02:21 PM
GREAT!!!!!!!!!
Works!!!!!! U'r great!! Thank you very much!!!!!
09-26-2012 03:34 AM
Hello !
can anyone please help me with a dll issue.I have a c++ class that peforms certain functions.i have created a dll that creates an object of this class to access functions to this class that can be used in labview.now when i run this dll in parallel using call library node function.the results are not correct.for example if my class performs addition of two numbers the 2-separate instances of the dll in labview would mix the addition result with each other.what do i need to do in order to run the dll in parallel.
Thank you.
09-26-2012 12:07 PM
Your DLL needs to be re-entrant. This isn't a LabVIEW problem, it's a problem in the way you wrote or compiled your DLL. You'll need to look at the documentation for your development environment to find out how to write and build the DLL so that it is thread-safe.
Alternatively, if you do not need to run functions in the DLL in parallel, change the Call Library Function Node setup to call the DLL in the user interface thread. This will keep calls to the DLL in a single thread, and the functions will execute serially instead of in parallel which will avoid mixing data between calls.