Jump to content
Sign in to follow this  
VisSim Forum Archives

Can I see a history of each state in a given statechart that I've been in over time?

Recommended Posts

Submitted by pete on Tue, 03/13/2012 - 09:53.

Yes, in the data browser for the statechart (get there via ctrl+right click on the statechart block), click on the "add variable" icon in the upper right corner, double click the type field, select State ID in the drop down. An output pin will appear on the statechart block, and you can connect it to a plot or send it to an export block for later playback. The state ID will have a numeric value, and you can connect it to a convert ID block to convert it to a string you can show in a display block. The numeric values are the same whether you are simulating or executing the state chart on an embedded system.

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.

You are posting as a guest. If you have an account, please sign in.
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.

Sign in to follow this  

  • Create New...