TonP Posted July 31, 2009 Report Share Posted July 31, 2009 For debugging a VI with the state machine toolkit I wrote a quick probe that lists the longest time for every state sorts the results to detect 'slow' states: Here is a screenshot of the actual code: Drop this probe on the the inpute wire of the state selector: Have fun, Ton JKI_SM_Timer.vi Link to comment Share on other sites More sharing options...
dannyt Posted July 31, 2009 Report Share Posted July 31, 2009 For debugging a VI with the state machine toolkit I wrote a quick probe that lists the longest time for every state sorts the results to detect 'slow' states: Here is a screenshot of the actual code: Drop this probe on the the inpute wire of the state selector: Have fun, Ton JKI_SM_Timer.vi Very nice Ton, thanks for that, I intend to use it today. Link to comment Share on other sites More sharing options...
TonP Posted July 31, 2009 Author Report Share Posted July 31, 2009 One thing to look out for is that after restarting the VI, the timing should be resetted. Ton Link to comment Share on other sites More sharing options...
dannyt Posted July 31, 2009 Report Share Posted July 31, 2009 One thing to look out for is that after restarting the VI, the timing should be resetted. Ton ah, I cannot easily save it for LabVIEW 8.2.1 as I hoped because of the feedback nodes. If you get time could you post a 8.2.1 version, I may try and look at changing it myself if I get time later cheers dannyt Link to comment Share on other sites More sharing options...
Jim Kring Posted July 31, 2009 Report Share Posted July 31, 2009 This is pretty cool! I would suggest that this VI not include its own execution time in the calculation. The ms timer value that gets stored in the shift register (feedback node) should be obtained by a second ms timer value taken after all this VIs calculations and UI updates are complete. JKI_SM_Timer_JK01.vi Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.