LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count subvi call

What is the best way in Labview to have a counter to count the number of times a subVI has been called? (example code attached). This should work for a case where the subVI is being called at multiple places. Can we use a global variable for this purpose? -P

Download All
0 Kudos
Message 1 of 2
(2,626 Views)

A feedback node is simpler and less prone to race conditions.  This will not work if the vi is re-entrant pre-allocate clones. since each clone instance would keep its unique count

untitled.PNG


"Should be" isn't "Is" -Jay
0 Kudos
Message 2 of 2
(2,616 Views)