Jump to content

How to make a probe update itself


Recommended Posts

Custom probes only update when the execution path runs through them, right? I have a custom probe that peeks behind a DVR and exposes lots of debugging information about the daemon VI the DVR is shared with. My application touches the DVR once and moves on, meaning the probe only updates that one time and then fails to give me information about the daemon later. How do I design the probe to continuously update without the app execution passing through it repeatedly?

Link to comment

I wrote a QD plugin that attaches a probe to a wire and launches another VI that'll works in the background.  The probe signals the background VI every time it runs, but you could program it to do something continuously.  I don't know if you could make it update the probe itself, though.

 

https://decibel.ni.com/content/docs/DOC-38903

Link to comment

I've used some debugging things like what you described in the past, but they were invoked by the tools menu, spinning off a VI that just monitored data that was more global.  I think your best bet would be as mentioned earlier, a probe which invokes a VI to be called which polls your data.

Link to comment

Something like this but with better reference handling?

 

That won't work if the probe VI doesn't update its FP until called again. It'll take an XControl...or something easier and more maintainable and easier to provide support for, like launching a "debug panel" that runs in the app.

Link to comment

I have had to face the same issue in the past and I did not found a solution.

It just occurred to me though, could you subpanel the background monitoring async VI into your probe and see if the subpaneled VI UI update (even though the probe is not)?

I am not sure that this will work, but might be worth a quick try.

Link to comment

That won't work if the probe VI doesn't update its FP until called again.

 

I tried it, and the probe UI will update when the Fire and Forget VI runs, even if the probe itself is idle. I saw my probe happily incrementing while its owning VI was idle.

 

post-4441-0-35465500-1429026084_thumb.pn

 

The biggest snag will be figuring out how to stop the Fire and Forget VI. It continues running even after the probe UI is closed.

  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

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