Jump to content
Sign in to follow this  
Steen Schmidt

Debugging of reentrant VIs on RT

Recommended Posts

Hi.

How about debugging of reentrant VIs on LabVIEW RT (Real Time)? I often need that, or, as a temporary workaround, the ability to specify the target on which to open a VIs front panel on. The latter would entail that reentrant VIs should maintain a copy of their front panels, even on RT, and that this front panel could be spawned on a remote Host, and then connected to the block diagram of the reentrant Vi on the RT target.

Cheers,

Steen

Share this post


Link to post
Share on other sites

You can run or application (not executable) currently on RT and you can open front panels and BD's of re-entrant VI's with no problem..

It is a bit slower since it has to download all the VI's but it still works.

N.

Share this post


Link to post
Share on other sites

QUOTE (Neville D @ Apr 1 2009, 08:12 PM)

You can run or application (not executable) currently on RT and you can open front panels and BD's of re-entrant VI's with no problem..

It is a bit slower since it has to download all the VI's but it still works.

N.

That you must explain to me please - I've had many NI people here in Denmark crunching it over, and they say it can't be done. How do you open the BD of a clone running on LabVIEW RT and put a probe on it? The last two years I've worked almost exclusively on LabVIEW RT on very large simulation projects, and I'd be delighted if I've somehow missed this.

Cheers,

Steen

Share this post


Link to post
Share on other sites

QUOTE (Steen Schmidt @ Apr 1 2009, 01:08 PM)

That you must explain to me please - I've had many NI people here in Denmark crunching it over, and they say it can't be done. How do you open the BD of a clone running on LabVIEW RT and put a probe on it?

Hi Steen,

sorry I was WRONG. I have two versions of my code which are essentially identical. One runs on the Desktop (Windows) and another on LV-RT. I had trouble-shot my re-entrant VI's by probing on the desktop version of the code.

I just tried out what you said, and the re-entrant VI's on RT don't update their front panels or allow probing on the BD's.

That being said, if you describe your problem, there might be other ways to debug your code.. tracking state transitions by logging to file, looking at the front panels of VI's or subVI's one level down, running on your RT code etc. You could even do what I did, have a version of the code running on windows and debug your re-entrant VI's there.

Neville.

Share this post


Link to post
Share on other sites

QUOTE (Neville D @ Apr 1 2009, 10:24 PM)

That being said, if you describe your problem, there might be other ways to debug your code.. tracking state transitions by logging to file, looking at the front panels of VI's or subVI's one level down, running on your RT code etc. You could even do what I did, have a version of the code running on windows and debug your re-entrant VI's there.

Neville.

Hi Neville.

I am debugging my code in the ways you suggest, so I'm getting the results I need - I'm just saying that it's extremely cumbersome compared to desktop applications, and I wish I could debug reentrant VIs on RT directly. This's probably just one of those things that'll never see an improvement.

Cheers,

Steen

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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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