Skip navigation

Community

2565 Views 6 Replies Latest reply: Oct 18, 2011 12:16 PM by jcarmody RSS
Andrey_Dmitriev Calculating status...
Currently Being Moderated

Feb 12, 2010 6:43 AM

Working with Probes - some questions

Colleagues,

 

I have some questions about Probes. (the scripting is pretty new for me, sorry).

 

What I can do so far is creating probe programmatically:

 

Lets say, my Test.vi looks like this:

 

ProbeTest.png

 

With following VI I can attach probes to wires:

 

ProbeTest-01.png

 

It works - as result I have Probe:

 

ProbeTest-02.png

I can also remove probe programmatically.

 

Now the Questions:

 

1. How can I change "Probe representation" to "floating" probe (similar action as "Open in New Window, but programmatically):

 

ProbeTest-03.png

 

2. How can I get list of all created probes programmatically without analysing all wires?

I can do something like that, but I guess this is not elegant way:

 

 

ProbeTest-04.png

3. Is it possible to get application Event something like "Application.Probe added" when user has added probe to Wire? In ideal case direct into Event Structure (without polling all wires)?

 

4. And the last question - is it possible to get Value/DateStamp from Probe programmatically?

 

(My goal is to develop my own Probe Watch Window)

 

Thanks in advance for any suggestion,

 

Andrey.

  • jcarmody Calculating status...
    Currently Being Moderated
    1. Oct 17, 2011 10:49 AM (in response to Andrey_Dmitriev)
    Re: Working with Probes - some questions

    Almost two years later, did you figure anything out for this?  I'd like to see a solution to your item 4.

     

    Thanks,
    Jim

  • Currently Being Moderated
    2. Oct 17, 2011 11:22 AM (in response to jcarmody)
    Re: Working with Probes - some questions

    The probe watch window is a C based dialog VI, meaning it has a front panel, but its "diagram" is entirely C code, so you can't customize your own probe watch window by editing the existing one. It doesn't even use any Call Library Nodes that you could borrow.

     

    > 1. How can I change "Probe representation" to "floating" probe (similar action as "Open in New Window, but programmatically):

     

    No programmatic access exists to do this. You'd have to request it as a new LV feature.

     

    > 2. How can I get list of all created probes programmatically without analysing all wires?

     

    You cannot to the best of my knowledge. You'd have to request it as a new LV feature.

     

    > 3. Is it possible to get application Event something like "Application.Probe added" when user has added probe to Wire? In ideal case direct into Event Structure (without polling all wires)?

     

    It is possible... if you request it as a new LV feature.

     

    > 4. And the last question - is it possible to get Value/DateStamp from Probe programmatically?

     

    Not in the way that you're hoping. You can write a specific custom probe that writes the Value/DateStamp out to some shared location, like a global VI or a queue or file that you read later. There's no generic way to get information about when a given wire is updated.

  • jcarmody Calculating status...
    Currently Being Moderated
    3. Oct 17, 2011 11:31 AM (in response to AristosQueue)
    Re: Working with Probes - some questions

    Not in the way that you're hoping. You can write a specific custom probe that writes the Value/DateStamp out to some shared location, like a global VI or a queue or file that you read later. There's no generic way to get information about when a given wire is updated.

     

    This helps me a lot.  The rest of your answer helps me know that it's OK to stop trying.  Thank you.

     

    Jim

    
  • jcarmody Calculating status...
    Currently Being Moderated
    4. Oct 18, 2011 6:47 AM (in response to AristosQueue)
    Re: Working with Probes - some questions

    I spoke too soon; I'm having trouble.  This is my probe:

     

    StateFollower_BD.png

     

    And I'm trying to read the Global VI here:

     

    mySpringboard_BD.png

     

    The Global doesn't get updated where I'm reading it.  I can open the Front Panel for it and see it update with the probe, but the one being read seems to refer to another instance.  Is there something about probes that I'm missing?  I tried similar approaches, first with a notifier and then with a FGV.  Neither method saw the probe change.

     

    Thank you,
    Jim

  • jcarmody Calculating status...
    Currently Being Moderated
    5. Oct 18, 2011 12:14 PM (in response to jcarmody)
    Re: Working with Probes - some questions

    I found this post where Ton said that "Probes run in a private application instance".  This makes sense to me based on what I experienced using a Global in a custom probe.  But, then, AQ said "Custom probes run in the same context as the VI that they are probing."  So I'm confused, again.

    

     

    The Global is being read in a VI I called from the Project menu.  Here're the corners of the two VIs:

    FPs.png

     

    The Project-launched VI is running in NI.LV.Dialog, the probed VI is running in <W> Server:localhost.  Is this the cause of my problem?

  • jcarmody Calculating status...
    Currently Being Moderated
    6. Oct 18, 2011 12:16 PM (in response to jcarmody)
    Re: Working with Probes - some questions

    jcarmody wrote:


    [...] The Project-launched VI is running in NI.LV.Dialog, the probed VI is running in <W> Server:localhost.  Is this the cause of my problem?

    Yep.

More Like This

  • Retrieving data ...

Bookmarked By (0)