LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imbedded vs stand alone execution time

I have a vi that does some digital and analog I/O with a 6024E NI board. When I run it stand-alone, it takes about 20-30ms to execute. But when I run it imbedded as a subvi, it takes almost a full second to execute. Any ideas why?
==============================================

0 Kudos
Message 1 of 4
(2,661 Views)
what is the top level vi doing? Could you post an example?
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 4
(2,661 Views)
The top level vi is doing several things in 2 parallel loops. In one loop, the data gathered by the vi in question is written to a DataSocket. In the other loop, I'm using the IMAQ vi's to acquire an image from a framegrabber and place some overlays onto the picture. Using the tick count vi and a few sequence structures, I've isolated the execution time of the vi in question, and from the time LV enters this subVI until it exits is the 1 second I mentioned.
==============================================

0 Kudos
Message 3 of 4
(2,661 Views)
Have you tried change the subvi's preferred executing system to "Data Acquisition"?
VI Properties -> Execution.

Joe
0 Kudos
Message 4 of 4
(2,661 Views)