Jump to content
Jim C

reference to Parse State Queue

Recommended Posts

I want to read the Current State, Remaining States and Arguments indicators from the FP of the Parse State Queue vi in my JKI State Machine. I can't figure out how to get a reference to the VI. Can you help?

 

I've looked and it doesn't appear to be in the App.All VIs In Memory list.

I tried to modify the VI to return a reference to itself. No luck.

I can see all instances of it when I set the FP to show when called, but I have some JKI-SM processes that I'm not interested in.

 

Alternately, can you suggest how I can monitor this information?

Share this post


Link to post
Share on other sites

Hi Jim,

 

I'm really sorry for the long delay in response. You asked a relatively non-trivial question, so it wasn't one that could be answered quickly.

 

Here are my thoughts:

 

Parse State Queue is reentrant, and LabVIEW doesn't provide a super-easy way to get the references to instances (a.k.a "clones") of reentrant VIs. I think what you would need to do is get a VI reference to the VI that contains the JKI State Machine, and then traverse its block diagram for GObjects of type "subVI" (using "vi.lib\Utility\traverseref.llb\Traverse for GObjects.vi" -- see here for tips from Darren). You would can then get the instance/clone VI reference from the subVI reference, check if it's VI.Name is Parse State Queue and then get it's Front Panel control references.

 

Whew... that was a mouthful :)

 

Let me know if you have any questions about this. I'm happy to help.

 

Thanks,

Share this post


Link to post
Share on other sites

Thanks for answering. I did this (snippet) but it didn't work. I don't get any errors, it finds the SubVI and I can even open the Front Panel but the reference isn't to the one This VI is using. The Get Control Value nodes don't show anything. Did I misunderstand your intent or is there more to this?

 

Jim

 

post-2583-0-10844600-1302710478_thumb.png

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.