Jump to content
TonP

Timing probe for the State Machine Toolki

Recommended Posts

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:

 

JKISMProbeFP.png

 

Here is a screenshot of the actual code:

JKI_SM_Timer_BD.png

 

Drop this probe on the the inpute wire of the state selector:

 

ProbeLocation.png

 

Have fun,

 

Ton

JKI_SM_Timer.vi

Share this post


Link to post
Share on other sites
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:

 

JKISMProbeFP.png

 

Here is a screenshot of the actual code:

JKI_SM_Timer_BD.png

 

Drop this probe on the the inpute wire of the state selector:

 

ProbeLocation.png

 

Have fun,

 

Ton

JKI_SM_Timer.vi

 

 

Very nice Ton, thanks for that, I intend to use it today.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

 

0.png

 

JKI_SM_Timer_JK01.vi

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.