LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event-driven and process time

Hi,
I have a event driven VI that has an SUB-VI in each event case.  There is a timer in the sub VI.  When I run the sub VI faster from 500ms to 1 ms the process time goes up even when the subVI is not running.  What I expected was very low CPU time until the subVI ran but this is not what happened.  I guess I do not under stand the event-driven VI.  Is there a document I could read on this?
Thanks
DonRon
0 Kudos
Message 1 of 4
(2,584 Views)
The CPU usage should not go up unless the subVI is running, and it didn't go up when I tested it. Even if the subVI is running, it should probably not go up much unless you put 0 in the wait or delete the wait.
 
I'm not sure what you're seeing, but I'm not seeing it. Could you post a screenshot of this, or list exact steps for how to recreate it?
 
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf). The user manual also includes a chapter about events. You can also try searching the site for specific tutorials about event handling.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,576 Views)
I concur. I saw absolutely no change in CPU usage when I ran the example. The only change I saw was when the subVI started and then it dropped right back to where it had been.
0 Kudos
Message 3 of 4
(2,568 Views)

Don Here,

Sorry, I just ran it again and it acts like the way you say.

Thanks

DonRon
0 Kudos
Message 4 of 4
(2,544 Views)