Jump to content
jj321

access front panel data value of clone vi

Recommended Posts

jj321, My guess is that I am not the only person looking at your posting and wondering what will happen if I download and open/run your VI. If you are looking for a response it may be better to post a screen shot of your code and provide a little more background information.

If you are curious, here are why my alarm bells are ringing; you have never posted to the group before, the one liner description is scant on details, your user name makes me think you are hiding something, etc. In other words, your posting appears to have the potential to do my computer harm and will be treated as such by me. I suspect anyone else who is worried about downloading suspicious content will do the same. Based on the above I will be pressing the 'Report this Post' button.

If someone has downloaded the VI and sees no problems, please let us know.

Share this post


Link to post
Share on other sites
39 minutes ago, austinman said:

jj321, My guess is that I am not the only person looking at your posting and wondering what will happen if I download and open/run your VI. If you are looking for a response it may be better to post a screen shot of your code and provide a little more background information.

If you are curious, here are why my alarm bells are ringing; you have never posted to the group before, the one liner description is scant on details, your user name makes me think you are hiding something, etc. In other words, your posting appears to have the potential to do my computer harm and will be treated as such by me. I suspect anyone else who is worried about downloading suspicious content will do the same. Based on the above I will be pressing the 'Report this Post' button.

If someone has downloaded the VI and sees no problems, please let us know.

The VI does exactly what jj321 said it does, access the control of a clone VI. I think the reason why nobody is answering is because there is no question, just someone sharing news with everyone :thumbup1:

Here is the snippet of the VI:

Get FP data.png

I don't know why anybody would want to access the controls of a clone VI like that since you would normally pass data while calling it. On the other hand if you need access to information from the VI there are other ways like notifier or queues. I have used a similar approach to call LabVIEW applications via ActiveX and sending information between the caller and the executable, but never from within LabVIEW...

@jj321 would you care to explain the use-case of your VI?

Edited by LogMAN
Fixing typos (maybe I should do that before posting?)
  • Like 1

Share this post


Link to post
Share on other sites

And, "slight trick" is just passing "clone.vi:590003" to Open VI reference, options 0,  instead of a path. Puzzled about what's the case, too...

Share this post


Link to post
Share on other sites
9 hours ago, austinman said:

My paranoia alarm needs to be turned down :D

It's a classic symptom of upgrading to Windows 10 :)

  • Like 1

Share this post


Link to post
Share on other sites

Sorry about minimal description. The slight "trick" is that the clone vi needs a name as a string where as a non clone vi can be open referenced with using a labview file path datatype. Maybe obvious to many but wasn't to me so it took me hours to figure that out and figured I would save someone time since I could not find it easily.

The case structure just selects the string name of the VI clone if its a clone VI or the file path if its a non clone VI.

The use case is scripting an interactive i.e front panel event driven VI that is already written for bench top use and later needs to be run in automated fashion with parameter sweeps controlled by another VI. I don't have time to rewrite a front panel event driven VI which happens to use re-entrant and thus clone subVI's that have most of the useful info that I need to access.

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.


  • Similar Content

    • By nikp
      Hello Lavag's,
      Currently developing an UI with custom titlebar like JKI Package Manager 2020, applications from MS Office etc. I have a laptop (1440 X 900) running windows 7 and a second monitor with resolution 1920 X 1080. Scale and layout options for both monitors are set to 100%. 
      "FP.State = Maximized" seems to work only when the resolutions for all monitors are equal or selecting the monitor with highest resolution as main screen.
      1. Laptop(1440 X 900) as main screen: FP.State = Maximized works fine in Laptop but not in second monitor. The Panel Bounds and Window Bounds are way out of the screen resolution.
                  
      Same as in case of JKI VI Package Manager (2020)
       
      2. Setting Window bounds and panel bounds manually:
      Some pixels appear in the another monitor when setting the Window Bounds and Panel Bounds manually. This sems to be also the case with NI-Package Manager
      Is there a way to make it work?  Any help is greatly appreciated.
       
      Regards,
      Nikhil.
       
      Custom Titlebar.vi
    • By ensegre
      I thought there was an easy, built in, VI server way of doing the following, but I haven't found one. Am I missing something trivial?
      So I have one application instance, spawning clones of a certain VI. I would like to get an array of the VI refs of all of these clones. I thought I could via some property like  Application:All VIs in memory, but I haven't found any suitable. All VIs in memory gets only the base VI names.
      Missing that, I resort to register all my clones in a FGV as they startup, , and consult the FGV at will. Is there a more linear way?
      RegisterMovieWriters.vi
      I also note that I have to associate each VI ref with its clone name in the FGV, otherwise plain refs to different clones match as equal in lookups.
    • By hichem55
      Hello,
       
      I will take the CLD exam in two days and I would be grateful if anyone could help me in these two questions:
       
      1/ Do I have the ability to change a Cluster from the given UI into a Typedef?
      2/ In addition to Tip strips, Is it recommended to add some comments on the front panel or not?

      Thank you very much!
    • By jj321
      programmatic control of front panel requires signaling instead of just simple value change . This requires access to controls . The attached VI's should do the job. The controls can be anywhere including tabs etc which requires recursive access.
      Get FP References.vi
       
      Get Set FP Value Signaling Anywhere.vi
    • By ASalcedo
      Hello to all.
      Thanks for helping me.
       
      I have developed an application in a laptop of 15.6 inches.
      Now I am creating a .EXE to deploy in a PLC of 15 inches.
      All my front panel is a tab control which has controls and indicators inside.
       
      The problem is that when I deploy de application I can not see a part of tab control (15 inches vs 15.6 inches).
      How can I fit tab control to 15 inches easyly?
       
      Thanks a lot.
×
×
  • Create New...

Important Information

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