11-30-2012 11:31 AM
In Labview can a C process running through one call to a DLL and have that process continue running and subsequent calls to read/write operations simply access this already running thread?
11-30-2012 12:32 PM
The CIN will be locked until it passes out the data you are requesting, so i don't think that is possible. I COULD be wrong on this though...
11-30-2012 12:56 PM
Your verbiage is not very clear but if you mean if the Call Library Node call will return while the C function is still operating then no it won't. The Call Library Node is simply a function call and that blocks until the function returns independant if you call that function from LabVIEW or C, or anything else.
What you have to do is spawning a thread (or process) in the DLL function and then return to LabVIEW, and most likely provide some means to communicated from LabVIEW with this thread/process somehow by using pipes, a queue or something like this in the DLL and exporting functions from the DLL to send messages through these channels to the thread/process and possibly retrieve answers from it.