07-08-2011 09:03 AM
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
07-08-2011 10:12 AM
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