07-03-2009 05:57 AM
I'm using a dll to control and read data from a camera. The dll is in a loop, in which it reads data from the CCD and moves the data to a memory location passed by labview (an array of uns_16). I want to have this dll running in the background while monitoring the contents with an intensity graph.
the problem is that the data is only displayed on the graph after the dll has quitted (-> all sequences completed).
What is the way ?
Thanx
07-03-2009 06:02 AM
07-03-2009 07:37 AM
Sory, I wasnt clear enough. The dll call isnt inside a labview loop. The dll itself calls a loop, i mean a while (...) { read_data_from_ccd(buffer_from_labview); ... }
I want to start my labview VI with a call to this dll, which then goes to background, and then i want the labview program to go on displaying the contents of the "buffer_from_labview" memory area continously, as fast as possible, in an intensity graph.
There is no point in posting the VI, it consist of an initialise array, a call library function node and an intensity graph.
thx !
07-06-2009 02:20 AM
Hi Dzac,
This is expected behaviour of the dll. When you call a dll and set the function, it will give a return value just after everything executed. I suppose the dll was written in some other language, so its not really possible to pass data between a running loop in the dlls function and a running loop in LabVIEW. Could you tell us what type of CCD and dll you are using? We might figurate out something!
Best Regards,
David Varga
Applications Engineer
NIH