LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find the sequence of VI's that call a common subvi?

Hi,
 
I am using LabView 8.5.  I am using a subvi called "Hardware - counter time" . This subvi is used in 5 other subvi's which are part of a main VI.  Currently, there seems to be some bug in setting up the analog data acquisition task which throws the message - " Hardware -counter time vi was read before the task was set". This message window pops up and there is only a 'OK' button; no other information whatsoever on the message window. Since this is not an error message, it is hard to find out from where this error is coming. I tried hard but with no luck. 
 
Here are my questions:
 
1. When you get a message that complaints about a common subvi that is used in multiple places, how do you find out at which instance of the use of the subvi the message is coming from?
 
2. Since 5 different VI's use this subvi, I would like to find out the exact sequence of those 5 caller VI's when the main VI is executed.  Is there a way I can do this ? This could help answer the first question.
 
Any help will be greatly appreciated.
 
Thanks
Mani 
0 Kudos
Message 1 of 4
(2,902 Views)
You can use the call chain VI in the Application Control Pallette.  Append that String into the error message in the case of an error.
0 Kudos
Message 2 of 4
(2,900 Views)
Hi masu,

You can open a logfile and let your subvi add an entry everytime it ist called.
Write a timestamp and the call chain data that Raves Fan has described into each entry, so you get a complete history of how your subvi has been used.

If writing to a file is too slow an operation (as you seem to be working with hardware counters ...) you might use a "log.vi" instead, that collects log entries as an array in an uninitialized shift register. Those data can then be looked at or dumped to a file when your application has completed.


I hope this helps
Anke

0 Kudos
Message 3 of 4
(2,880 Views)
Hello Ravens Fan and Anke,

Thanks a lot to both of you. You suggestions really helped.

Mani
0 Kudos
Message 4 of 4
(2,864 Views)