JKI Discussion Forums
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Timing probe for the State Machine Toolki

#1
User is offline   TonP 

  • Group: Members
  • Posts: 104
  • Joined: 28-July 06
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:

Attached Image: monthly_07_2009/post-15-1249025875.png

Here is a screenshot of the actual code:
Attached Image: JKI_SM_Timer_BD.png

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

Attached Image: monthly_07_2009/post-15-1249026421.png

Have fun,

Ton
Attached File  JKI_SM_Timer.vi (15.76K)
Number of downloads: 117
0 kudos

#2
User is offline   dannyt 

  • Group: Members
  • Posts: 98
  • Joined: 14-December 06
  • Location:Devon, UK

View PostTonP, on Jul 31 2009, 08:47 AM, said:

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:

Attachment JKISMProbeFP.png

Here is a screenshot of the actual code:
Attachment JKI_SM_Timer_BD.png

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

Attachment ProbeLocation.png

Have fun,

Ton
Attachment JKI_SM_Timer.vi



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

#3
User is offline   TonP 

  • Group: Members
  • Posts: 104
  • Joined: 28-July 06
One thing to look out for is that after restarting the VI, the timing should be resetted.

Ton
0 kudos

#4
User is offline   dannyt 

  • Group: Members
  • Posts: 98
  • Joined: 14-December 06
  • Location:Devon, UK

View PostTonP, on Jul 31 2009, 10:04 AM, said:

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
0 kudos

#5
User is offline   Jim Kring 

  • Group: JKI Team
  • Posts: 1,204
  • Joined: 15-March 06
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.

Attached Image: 0.png

Attached File  JKI_SM_Timer_JK01.vi (16.31K)
Number of downloads: 81
0 kudos

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic