Jump to content
bdtm

State Machine as a subVI of a State Machine

Recommended Posts

Hi All,

 

I've got two VIs, both implemented as JKI state machines. I'd like to incorporate one of the SMs as a subVI into the larger SM (and display elements of its front panel on a tab). So far, it seems that trying to simply block the main VI as it (guessing) waits for the subVI to finish doing something.. but as it's in a state machine it never really completes. So can this be done? Has this been done? Any tips? I can provide more information if necessary.

 

Thanks,

Brian

Share this post


Link to post
Share on other sites

.... display elements of its front panel on a tab....

 

Brian,

 

What you need is a "Subpanel" to display Front Panel of a VI (running independently) in another VI. Here is a link to an article on NI website describing the implementation of subpanel: http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/loading_panel_in_subpanel/

 

You do not have to make SubVI of one State Machine VI into another, but run them in parallel and independent and use Sub Panel to display front panel of one VI into front panel of another VI.

 

Hope this helps.

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.