Stobber Posted April 13, 2015 Report Share Posted April 13, 2015 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? Quote Link to comment
jcarmody Posted April 13, 2015 Report Share Posted April 13, 2015 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 Quote Link to comment
Stobber Posted April 13, 2015 Author Report Share Posted April 13, 2015 (edited) Yeah, if I can't update the probe's UI, it's basically useless to me. (The probe, that is.) Edited April 13, 2015 by Stobber Quote Link to comment
Antoine Chalons Posted April 13, 2015 Report Share Posted April 13, 2015 maybe an XControl could help you with this, no? Quote Link to comment
Popular Post Stobber Posted April 13, 2015 Author Popular Post Report Share Posted April 13, 2015 It's never worth the effort to create (and then maintain) an XControl. 3 Quote Link to comment
Antoine Chalons Posted April 13, 2015 Report Share Posted April 13, 2015 (edited) I tend to agree with you but clearly that's not Olivier's point of view... Saphir's probes (see LVTN) are full of XControls [edit] of course if it's only for one project... it may not be worth at all Edited April 13, 2015 by Antoine Châlons Quote Link to comment
hooovahh Posted April 13, 2015 Report Share Posted April 13, 2015 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. Quote Link to comment
Popular Post infinitenothing Posted April 13, 2015 Popular Post Report Share Posted April 13, 2015 (edited) Something like this but with better reference handling? Edited April 13, 2015 by infinitenothing 3 Quote Link to comment
Stobber Posted April 14, 2015 Author Report Share Posted April 14, 2015 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. Quote Link to comment
PJM_labview Posted April 14, 2015 Report Share Posted April 14, 2015 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. Quote Link to comment
Darren Posted April 14, 2015 Report Share Posted April 14, 2015 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. 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. 2 Quote Link to comment
infinitenothing Posted April 14, 2015 Report Share Posted April 14, 2015 Did you see how I was trying to stop it? The front panel reference dies when you close the probe and the property node throws an error. 1 Quote Link to comment
Darren Posted April 14, 2015 Report Share Posted April 14, 2015 Did you see how I was trying to stop it? The front panel reference dies when you close the probe and the property node throws an error. Ah cool, yeah, that seems like it would work. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.