Main Front Panel Cluster reference in Sub VI

If I create a reference to a cluster and then create a Sub Vi,  I can change
the cluster variables from the sub vi. All works well - Until I modify the Cluster.
This breaks the sub vi with a wire class error. Can I fix this ???
Solved!
Go to Solution.

Hi Ben,
You got a broken wire just because you used a property node for strict type definitions (not for generic). The VALUE of the property node that you used includes the information of cluster data type.
My suggestion is to use a type def cluster, and use this cluster constant for "Variant to Data" in subVI. By using this type def cluster, you do not need to modify the main part of your subVI. You only need to change the unbundle item when you add/remove new element of the cluster.
Attachments:
LV Ref.zip ‏18 KB

Similar Messages

  • How to show in the main front panel the progress of each sub Vi ?

    my program has many sub VIs, i wish to show in the main front panel the progress of each sub Vi; what is the best way to do that?
    atleast i need to show that each sub vi is completed, [can i add details on the main front panelsuch as: filename that is being read by a subVi, graphs plotted by a subVi, etc..]
    can i display a graph from a subVi on the front panel of the main Vi?
    what i hv done is attched as picture.
    Solved!
    Go to Solution.
    Attachments:
    Capture4.JPG ‏152 KB

    as suggested...pass references and cntrl references
    Spoiler (Highlight to read)
    Attachments:
    main ref cntrl.zip ‏27 KB

  • How to update the variables in sub-vi on main front panel?

    hi~
    The problem is to display variables in Sub vi on main front panel.
    What should I do?메시지가 04-07-2005 03:14 AM에 julitan에 의해 편집되었음
    Attachments:
    main_.vi ‏14 KB

    You probably want the slide to update while the while loop in the subVI is running, so you can't simply wire an output from the subVI to the main VI. So you are going to have to use some form of communication between the two VI's other than a hard wire. For this simple case I think I would recommend using a global variable. You could also use DataSocket or even write the value to disk, but using a global is probably the easiest method for this case. I've attached your modified VI's. Let me know if this works for you.
    Robert Mortensen
    Software Engineer
    National Instruments
    Attachments:
    global.zip ‏45 KB

  • Reference to control on main front panel fails when subvi front panel is closed?

    Hi All,
    I'm experiencing an odd bug. In my code, I use a subvi to control a piece of hardware. This subvi has controls for all of the functions of my hardware.
    I'm changing the value of one of these controls from my main front panel by running a reference to a knob on my main front panel into the subvi, grabbing the value of the knob with a property node, and then updating the value of the subvi control using a signaling property node.
    This works fine when my subvi front panel is open but fails to work at all when the subvi front panel is closed.
    I'm new to labview , so any help is appreciated.
    Thanks,
    Arpan
    Solved!
    Go to Solution.

    What is your LabVIEW version?
    Front panels that are not shown are typically not updated and might not even be loaded into memory.
    The presence of certain code elements (e.g. property nodes) often forces the front panel to be in memory even if it is not shown, but I haven't studied it in a long time so there might be subtleties. Maybe somebody from NI can give more details.
    If it does not work unles the FP is open, open the front panel minimized to avoid distraction.
    Can you attach some code? Maybe there are better ways to do all this anyway.
    LabVIEW Champion . Do more with less code and in less time .

  • Multiple subvi's in main front panel

    Hello and welcome (it is my first post here),
    sorry if such subject was already risen, however I don't know how to specify it exactly in terms of LV nomenclature (I'm a beginner in LV) what makes it quite difficult to search the forum.
    I need to create an interface with user specified number of input channels (specified during application work, so dynamic loading is necessary). Each channel is to be controlled by subVI. I'd like to load panels of all running input subVI's into some container in a main front panel (similarly to subpanel, but loading multiple VI, not single one). Is there a container capable of this? Is it at all possible in LV?
    Regards,
    kaolpr
    Solved!
    Go to Solution.

    You can use multiple subpanels. Unfortunately the number of subpanels must be set during development. You could create a method of cycling through your various channels. This would involve loading and unloading the multiple subpanels that you do include in the UI.
    Another alternative would be to use a table or something similar. Have your subVIs post updates to the UI code via queues, notifiers or user events. Tables are much easier to manage when your number of elements varies. If you need to have the UI pass information to the subVIs it can also use queues, notifiers or user events.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How can I hide the main front panel when I run from the executable?

    Hopefully this is an easy question. I have an application where the front panel is not the main GUI and I would like to hide it when the program runs, but only when it runs from the executable. How can I do this?

    NIquist wrote:
    Yeah, don't do that. Executables built in LV require at least one front panel to be open. If it isn't, the run-time engine automatically closes the executable. I haven't checked recently, but I assume this is still the case.
    Instead, you can set the FP state to minimized (as suggested earlier) or (better) to hidden.
    P.S. one side point - the property and invoke nodes have a shortcut - if you use the Application or VI classes and don't connect a reference, they default to the current app or VI. That means you don't have to open the reference.
    Try to take over the world!

  • Can I control front panel items from a sub VI?

    Hi all,
    After taking the Intermediate I class, I have been trying to follow the methods of using modular programming, but there's one thing I haven't quite figured out how to do. How can I change a front panel display from within a sub VI? I have a menu selection that I wish to change - can I simply input a reference to it or something like that?
    Thanks much,
    Jason

    All you need to do is to pass a control reference to the subvi, and then, in the subvi, to use a property node to modify whatever you want (well, almost...) on your control. Ask if you have more trouble and need an axample...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How adjust front panel placement of a sub VI in the subpanel

    Ok so I've learnt how to use tabs and how to place Sub VI's in the tabs. Last, I would like to change the position of the front panel of some of these sub VI's
    because they're not positioned to my liking  
    Whats the way to go?
    Thanks!
    Solved!
    Go to Solution.

    by default, a VI loaded into a subpanel will show up with the same FP position as when you last saved it.  That's not often what you want, and it's easy to move the FP around inside the window and forget you're changing it.  But this should be good enough to get going.
    one trick that I use is to load the subvi into the subpanel with the same origin in each.  So both the front panel and the pane that it is in have their own coordinates.  For the pane (which is normally the window boundary, and here is the subpanel boundary) the origin is 0,0 at the upper left corner.  On the front panel, look for a little dot with the grid visible.  That's (0,0) on the FP.
    So what we can do programmatically is to use property nodes to set the pane origin to the front panel origin:
     (LV2009f2)
     ok so the snippet ate my constant but there should be two 0's (I32) in that cluster.  Just create a constant on the Origin property and it'll make it.
    -B 
    -Barrett
    CLD

  • Different pages of main front panel

    How can i create different pages of the front panel? A link is give in which the frontpanel has number of pages.
    https://decibel.ni.com/content/docs/DOC-15943
    Solved!
    Go to Solution.

    Hello Sadan,
    Use Tab Control for that.
    Regards,
    Bijay

  • Can not open front panel sub VI when running an application VI.

    When I create an application of my program a problem occurs. When I select options (press a button or so) from the main front panel that should result in a popup menu (sub VI cal) LabVIEW indicates that something is happening but the front panel does not open. The mouse indicator changes to the time glass so LabVIEW is doing something but the window of the sub VI does not open.
    The problem has the same characteristics on several places. There are some sub VI front panels that opens but I ca not find the reason for why these open and not other.

    Hi
    there are three ways trhough which you can force a subVI to show its front panel
    1. open the perticular SUB VI
    click File->VI properties select window appearence catagory.
    click customize button and select "Show Front Panel when called" and "close afterwads if originally closed" check boxes
    save the VI
    whenever you use this Sub VI every time it will pop up front panel
    2. dont perform the changes suggested in option 1. place the instance of subVI in your main application and if you want that instance to popup a front panel then right click on subVI and Select "SubVI Node Setup" again select "Show Front Panel when called" and "close afterwads if originally closed" check boxes
    with this option only certain instances of SUB VI will cause pop up to occur
    3. this is the most flexible option. use invoke node to show front panel. in invoke node select show front panel method to popup the VI and use close front panel method to close the pop up window.
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • Close top vi front panel while sub vi front panel run

    Hello,
    I'm writing wiring a program and  have several (several several several .. ) VI which launches Sub-VI with their front panel.
    During there Sub VI, the Front Panel of the Top-VI get bored behind...
    Is it possible to Hide this Front Panel while the sub-VI is running.
    Thanks
    Solved!
    Go to Solution.

    Sorry for this post, i didn't read every replies of the folowing topic :
    http://forums.ni.com/t5/LabVIEW/closing-front-panel/m-p/300115
    The VI of falkpl :HideFPvi.vi 24 KB is a very good method for my VI.
    Sorry again, hope this'll help someone

  • Opening multiple sub VIs (front panels) in an application

    Hi, 
    I am working on a small process control application. The main VI represents a layout of various equipment (pumps, valves, heat exchangers). Each TYPE of equipment
    can be turned on/off through a particular subVI. The subVI is displayed when the operator clicks on the component.  At the moment only one subVI front panel can be loaded. I would like to have multiple panels open at the same time; this to include multiple instances of a same VI and different subVIs.
    I have tried to set properties in the WindowsApperance dialog box but cannot acheive the desired operation. 
    Any suggestions?
    Thanks

    Trust my personal experience: You do NOT want multiple dialog windows open.  The users will hate you and curse your name if you do.  You really want to use subpanels and limit what the user can do.  Subpanels are a way of inserting a VI's front panel into another VI's front panel.  So you want to have a section of your main front panel that the user can load whatever control subVI they need.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Update values in cluster on front panel

    I'm sure I'm missing something obvious, but how do I get a cluster on the front panel to update its values? Synchronous display doesn't work like I expected it should. 
    Ref. the attached example: I want the front panel cluster numeric control's values to update when they are changed. The numeric value is increased by 1 and then rebundled to the cluster, and the indicator shows the correct value. I, however, want the control to be updated as well, so that it shows the increased value for numeric and will be that value the next time the VI is run. Is there a way to do this?
    Solved!
    Go to Solution.
    Attachments:
    cluster_updateControlValue.vi ‏7 KB

    Hi..
    Check the attached vi...
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney
    Attachments:
    cluster_updateControlValue (1).vi ‏7 KB

  • How to run a subVI without poping up normally, but when clicking a button, popup the front panel?

    I know pop-up the front panel of a subVi when called by selecting VI Properties>>Windows apperence.
    But what I need to do is: always run the SubVI inside the parent VI as the nornal subVI do without poping up. But when I click a button"show front panel", the SubVI popup the front panel.
    Is there anyway to do this?
    Thanks,

    ossoo,
             You can use a static VI reference to the subVI and then use the Front Panel Open invoke method to show the front panel when you want. I have attached two VIs that show this. I saved these VIs for LabVIEW 2009 so you should be able to open them up and run them in 2009 or later. Add.VI is the subVI that you are calling. The Caller.VI is just a While Loop that contiually calls the Add subVI. Inside of the While Loop is also a Case Structure with a Static VI Reference (you might need to change the path this is pointing to after downloading the VIs to your computer for this to work) and the Front Panel Open invoke method. You can run the Caller.VI and interact with the main Front Panel as normal and see the subVI but then you can click the Open subVI? boolean button and it will open the subVI's front panel. You can continue to interact with the main front panel and see the values update on the subVI's front panel as well. You can just close the subVI's front panel when you are done viewing it. Does this help?
    Grant H.
    National Instruments
    LabVIEW Product Marketing Manager
    Attachments:
    Caller.vi ‏19 KB
    Add.vi ‏23 KB

  • Sizing subvi to designated space on front panel

    Hi All,
    Rookie LabVIEW programmer here, just starting to get into it.
    I'm working on an app that has several states, setup/acquire/display
    etc. that I control with a cluster of buttons (ala a training class
    example). So I've placed these buttons on one side of my app and have laid
    out a display area where I want the subvi's to apear (one for each state).
    So my question is, How can I position the subvi to appear in the
    location I have designated on my main front panel?
    Thanks in advance for the help.
    Cheers,
    Gregory Cole
    [email protected]
    "Today's mighty oak is just yesterday's nut that held its ground."

    hi... sorry about that
    There isn't any password protection but just locked (under vi property)
    Here it is.
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    poSubvianfk.llb ‏56 KB

Maybe you are looking for

  • Urgent: File does not begin with '%PDF-'

    Hi, I am constantly getting this message when i click on certain PDF documents stored in my collaboration rooms. Strangely, this is not happening for all the PDF docs and is only applicable to a few documents. Any help would be greatly appreciated. R

  • Apple won't send me my forgotten passwords!

    I just purchased a new Macbook and I am having trouble authorizing a lot of my purchased iTunes songs. I have used 3 different apple accounts to purchase iTunes songs, one of the e-mails was an @sbcglobal.net domain, which doesn't even work anymore,

  • Html in editorpane

    Hi all! i'm using a editor pane to show some html code but my problem is that when i use setText(String) method it adds my string to the END of the html file ... <html> <head> </head> <body> </body> </html> hotmail. <b> hola </b> -- 02/13/2006 17:16

  • How do I set the NPLC on a Agilent 34970A then keep it set when I do a Temp measurement on the channels

    I have an Agilent 34970A DAQ that I am trying to set the NPLC to 10 and keep it set when I issue a temp measurement command to the channels.  Right now I can issue the NPLC 10 command to set the channels and it works but when I send the measure chann

  • Add custom button in MR11

    Hi, We want to add cusotm button on output screen of MR11. How can we add button on output screen of MR11? Regards, Jigar Thakkar.