02-26-2010 06:44 AM
Hi
I am facing a strang problem. To solve my problem i have a written a debug vi (also attached here).
Problem is this debug.vi does everything expected when i run it in labview (ver-2009) but it doesnt do what is required when i call it from a labview generated dll.
Exact Probelm: I want to read an analog input through daq-assistant via NI PCI-6259 DAQ device. And i want to control the time for which the signal should be read.
And this functions good in labview: If i want to read signal for 10 second, then the vi runs for 10 seconds.
But if i call the same vi function from a labview generated dll, then the function call retruns within 2 seconds ignoring any input read_time (log_time).
i.e. if i say, read input for 10 sec, function returns in 2 seconds in stead of 10 seconds.
but i have also implemented a check in the attached debug.vi that simply delays for given read_time. And surprising that works!
For your info: DLL is generated in correct way. there are 12 functions exported in this dll and all of them are working so its not an interface problem.
03-02-2010 09:54 AM
Hi
How did you calculate the execution time? You can use the Timing Template (data dep).vi located in \LabVIEW 2009\examples\general\structs.llb\Timing Template (data dep).vi
Go to the block diagram and place the functions or VIs that you want to time in the For loop.
please post your dll and your test-VI