Vi's with sub panel

hi
i want to run an aplication on fp-2010 which have sub panels(panel embedding)
but i got the following problems
1.vi's with sub panel are not loaded on fp-2010
2.and not supported by Lab VIEW Real Time
can any one help me in this regard or suggest any other method that i run my application with fp-2010
OR can i use any other tecnique which give the same functionality as sub panels and compatible Lab VIEW Real Time
regards
mazhar

duplicate post

Similar Messages

  • Best technique for laying out a JPanel with sub panels...

    Okay, you're probably going to think this is a nit-picky question, but I seem to do it different each time I have to solve this problem, and neither of them feels like they're obviously the "right" way to do things, so I'm asking for how you all do them.
    Suppose I'm making a panel that's going to have several other panels on it. For example, let's say that the main JPanel is going to use BorderLayout and then there's going to be a sub-panel with a bunch of radiobuttons.. and another with some textboxes, and another with some jbuttons, etc.
    There are a few ways you can do it:
    Method #1
    1 Instantiate main JPanel
    2 Instantiate a sub-panel
    3 add() the sub-panel to the main (before it has anything)
    4 Populate the sub-panel with compnents
    5 Repeat 2-4 for all other sub-panels
    Method #2
    1 Instatiate main JPanel
    2 Instantiate a sub-panel
    3 add() it to the main panel
    4 repeat 2-3 for all sub-panels
    5 populate the first sub-panel with components
    6 Repeat #5 for all sub-panels
    Method #3
    1 Instantiate a sub-panel
    2 Populate the sub-panel with components
    3 Repeat 1-2 for all sub-panels
    4 Instantiate main JPanel
    5 Add populated sub-panel to main JPanel
    6 Repeat #5 for all sub-panels
    Method #4 (same as Method #1 except #3 and #4 are switched)
    1 Instantiate main JPanel
    2 Instantiate a sub-panel
    3 Populate the sub-panel with components
    4 add() populated sub-panel to main panel
    5 repeat 2-4 for all sub-panels
    They'll all work just fine when you initially write them. What I'm after is the one which:
    1) Is the most readable later, and
    2) Is easiest to make changes to if you want to change the way your overall panel looks (ie, least chance of having something go wrong because you didn't realize that you need to make a change in two different places in the code instead of one, etc).
    Of these methods, do any of them strike you as either "Sure, that's the only way to really do it!" or "Oh man, if you did it *that* way, you're in for major headaches"?
    Thanks in advance,
    - Joe

    Well, my code generally would look something like this:
    add(createToolBar(), BorderLayout.NORTH);
    add(createApplicationPanel(), BorderLayout.CENTER);
    add(createStatusBar(), BorderLayout.SOUTH);The createApplicationPanel might then be broken down into sub methods depending on the complexity of the application.
    So I guess that would be your method 4.
    The key point to remember is that you want create and add all the components and panels BEFORE you do your frame.pack() and frame.setVisible(), then you shouldn't have any layout problems.

  • Performance Profiler with Sub-Panel linked VI's

    I've got a Main vi which contains a tab control, each page holding a subpanel linked to a SubVI. When using the Performance and Memory Profiler my Main.vi is the only one that shows up, so the timing information isn't very useful. If I get a Snapshot while the profiler is running it shows the linked subVI's as being in memory, but doesn't show any timing information on them (All 0.0's for all vi's including Main).
    Am I doing something incorrectly?
    Attachments:
    Profiler.jpg ‏50 KB
    Snapshot.jpg ‏58 KB

    Looks like you are doing everything correctly.  The problem is somewhere between how the SubPanel deals with VIs in memory, and where the Profiler gets its data.  You should be able to see stats for your main VI once you stop it, but not the subVIs you are loading into the panel.  Sorry if this isn't what you were looking for, but at least we can say that it is not you doing anything wrong.  I would head on over to the Product Suggestion Center and submit this (these are taken seriously!).  It's certainly a valid use case that may not have been considered yet.
    Cheers, 
    Brian A.
    National Instruments
    Applications Engineer

  • Opening vi in sub panel

    hello,
    i think question has been posed multiple times but i don't find post talking about behavior expected
    i have two vis that can be called vith a main i would like to call them using arguments (init, stop, ...) but 
    as they are played alternativitely  i would like to see panels not in new front panel but in  common sub panel of main ...
     Best regards
    Tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte

    Thank you
    me again
    there is no way to display   for example vi1 or Vi2  in a sub panel without caliing them with there explicite filename ?
    i'm interested with sub panel not for dynamic calling but for common window of vis   used in a main prog 
    Best regards
    tinnitus
    CLAD / Labview 2011, Win Xp
    Mission d'une semaine- à plusieurs mois laissez moi un MP...
    RP et Midi-pyrénées .Km+++ si possibilité de télétravail
    Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
    Don't forget to valid a good answer / pensez à valider une réponse correcte

  • Vit's not loading in sub panel in executable

    I have turned a project into an executable. This executable acts as a server and the user interacts with it through a web browser. There is a subpanel which loads different vit's front panels depending on which button is pressed. I have solved the path issues (thanks to help from you guys). Is there an issue with sub-panels and vit's? (I have built a simpler application which loads two vit's into a subpanel alternatively and its working fine). So what might be the problem? (The executable is not outputting any errors; the application runs fine in development mode. I have used OpenG Commander to download all the libraries and vi's through it and integrated them into LabVIEW (8.2). Could it be causing some problem?

    Thanks Ben for the help!
    Yes Ben I have added all the vit's in the "Dynamic vi's and support files" section of the build properties dialog box. Yes the front panels load fine if not being loaded in the sub panel. Actually this application runs through a web server. And all the panels load and unload inside the browser. The applicatio works fine in development mode but doesn't work as expected when turned into an executable. So as a last resort I converted all vit's into seven vi's each (by appending numbers to their name) and then used a hidden control to find out which one to call. Its working now but only seven users can log onto the server at any given time. So if it could work properly somehow it would be so nice (and soothing to my aching mind which has been battling (and losin so far) the problem but to no avail).
    Thanks for the help!

  • Problem with multiple sub-panels through Enum case structure: "The VI is not in a state compatible with this operation"

    Hello,
    I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu.  I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.  However, I receive an error "The VI is not in a state compatible with this operation."  I was able to successfully make a single sub-vi work within a sub-panel using a true/false case structure and the exact same coding.  However, now that I am using an Enum box wired to a case structure, I receive this error.  I have attached my block diagram as well.  Could anyone assist me as to where it is that I am going wrong?
    Thanks in advance!
    Solved!
    Go to Solution.
    Attachments:
    enum subpanels.JPG ‏22 KB

    torm wrote:
    I have attached my block diagram as well
    I only see a picture. Can you attach the VI instead? At what point do you close the reference?
    torm wrote:
    I have wired the Enum to a case structure and applied identical coding to each individual case structure except for obviously changing the sub-vi source.
    Well, if the code is identical except for the source, only the source should be inside the case, right? Why duplicate code?
    LabVIEW Champion . Do more with less code and in less time .

  • ActiveX controls disappear when VI is loaded in a Sub-Panel with Start Modal Dialog usage

    Hi,
    I have a subpanel in a VI (VI1) in which another VI (VI2) is loaded. VI1 is used as a module for an Action step in TestStand. VI2 has ActiveX controls like ExpressionEdit and Adobe PDF reader etc. VI1 loads VI2 in a sub-panel and calls Start Modal Dialog.vi. I have set 'Show front panel when called' to true for VI1 so that the VI pops up when the sequence is run. When the sequence runs and when the Start Modal Dialog VI is called from VI1, all ActiveX controls in VI2 (loaded in the sub-panel) disappears. Here is the screenshot of the frontpanel of VI1 when the sequence is run:
    This problem occurs in TestStand 4.2.1, TestStand 2010 and TestStand 2010 SP1 (as far as I have tested. May occur in older versions too). In the attached file, VI1 is 'ExprEdit Test.vi' and VI2 is 'SubpanelLoad.vi'. The attached sequence is developed in TestStand 2010 SP1.
    How can this issue be solved?
    Thank you,
    Ganesh Kumar
    Solved!
    Go to Solution.
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏23 KB

    Hi,
    An update on this issue: I tried changing the order of loading the VI in the SubPanel and the start modal dialog. I called start modal dialog and then loaded the VI (VI2) in the SubPanel. When I ran the sequence, the activeX controls did not disappear (I was pretty sure that the ActiveX controls in VI2 would not disappear since I am calling Start Modal Dialog before loading the VI in the Subpanel). Then I just changed the sequence of operations back to the previous order (loading the Subpanel with the VI and then calling the Start Modal Dialog). When I ran the sequence, the activeX controls where still displayed. But when I ran the sequence with the VI1 backup (that I had taken before making all these modifications) the activeX controls were not displayed. I a nutshell, I now have 2 versions whose codes are the same. But when I run the sequence with action steps for these VIs, the activeX controls disappear when the unmodified backup VI runs and does not disappear when the modified VI is run. I have attached the files that I used along with the sequence file. The details are as follows:
    ExprEdit Test (Not Working).vi - The unmodified backup VI for which the ActiveX controls disappear.
    ExprEdit Test (Working).vi - The modified VIs in which the ActiveX Controls do not disappear (But same code as ExprEdit Test (Not Working).vi).
    ExpreEdit Test.seq - The sequence file containing 2 action steps one each for theabove mentioned VIs.
    SubpanelLoad.vi - The VI that contains activeX controls and is loaded in the SubPanel.
    Note that the sequence is created in TestStand 4.2.1.
    Thank you,
    Ganesh Kumar
    Attachments:
    Subpanel Load ExpressionEdit problem.zip ‏36 KB

  • Handling User Events in sub panel vis and main vis with same Event reference Number.

    Hi All, Iam trying to work to handle events in both subpanel vi and main vi.
    I have a main program, and 2 sub vi. I will load the sub VI in 2 sub panels in main vi. Each sub pael vi has controls on it.
    I have created 2 User events for 2 sub panels vi. One user event consits of a Cluster with 2 Booleans (x & Y) and Other User Event consists of cluster of 2 unsigned 8 Numbers (a & b). These are created and registered in the main Vi and event register refnum is passed to the subpanel vi from the main panel vi.
    I have Event structure in main panel and sub panel vis.
    In one sub panel vi, When the value of one boolean(i.e. X) in the clusters changes, the Events structure in sub panel vi should perform some operation in sub panel vi only. When the value of other boolean (i.e. Y) changes it should perform some operation in main vi. I will try to Generate user event with the x value and Y value changed based on the control clicks in the sub panel vi.
    The OTher panel vi should behave in the smae way when the a & b value changes.
    The "Generate User Event" is working fine some times and sometimes there in no event triggered in the sub panel vi or main vi.
    Please let me know what is the problem Ramesh.

    There is a lot of talking, but not much understanding.  It'd be better if you posted some example VI's of what you are trying to do so that the words will make sense.
    One thing I can tell you is that you don't want to have two event structures handle the same event reference number.  You want to have two event registrations with each one going to its own event structure.

  • How to remove sub panel scrollbars with LabVIEW 2009-SP1?

    I did a search and found this thread on the subject: http://forums.ni.com/t5/LabVIEW/subpanel-scollbars-in-labview-8-0/m-p/284503/highlight/false#M149983
    I double checked that that the horizontal and vertical scrollbars were not selected in the Customize Window Appearance and they were not selected as shown in the image below.  You can see the nasty scrollbars in the front panel in the image at the bottom.  Of couse, since the code / sw cannot be shown, it has been painted over but you can still see the scrollbars along the frame of the sub-panel.
    Customized Window Appearance settings:
    Scrollbars are seen at the bottom & right of the sub panel frame
    Solved!
    Go to Solution.
    Attachments:
    WIndowAppearance.PNG ‏22 KB
    scrollbars.PNG ‏33 KB

    Just ran into this myself.  (To complicate matters, forgot that one of my debug tools turns the scroll bars back on upon program exit.)  "Off While Running" works, too.  You can insert this code onto the diagram of any VI that will be called in a subpanel.
    Thanks for the tip.
    Certified LabVIEW Architect
    Wait for Flag / Set Flag
    Separate Views from Implementation for Strict Type Defs

  • Loading independent sub vis in sub panels and calling from main vi

    Hi all,
    I have trying to work on the following requirement.
    I have a main vi with a file browzer and sub panel - Channel . I will select a channel configuration text file which contains Analog and digital channels names. ''
    My vi will read that file and loads and Channel VI in the sub panel - Channel.
    Now the CHANNEL VI has a tab control with 2 pages analog and digital. Each page again has sub panels i,e. sub Panel - Analog and sub-Panel-Digital.
    Analog VI with some knob controls which are binded to Signals are displayed in the sub Panel - Analog.
    Digital VI with some boolean controls  which are binded to Signals are displayed in the sub Panel - Digital.
    These vis will show the values acquired from the hardware.
     I want to provide the user to load any channel configuration file and acquire the data. For the first time the execution is working fine. The next time when I tried to load a new configuration file. it says "Invoke node in main cvi <Append> Method Name <b>Run VI</b> and the new configuration is not loaded.
    The following logic is implemented as a sub vi to load and close the sub panel vi.
    VI Load logic:
    VI CLose Logic
    So please let me know where am i doing wrong.
    Before loading the new configuration file Iam calling the close logic . But still is not working.
    Thanks in Advance.
    Ramesh.

    Can you post a vi snippet? It would be helpful to see your logic flow, I'm wondering if your problem is that you've got "remove vi" node at the end after you have already closed the vi reference - but can't tell if same vi reference are used as in the case of top diagram.
    -DP
    New Controls & Indicators made using vector graphics & animations? Click below for Pebbles UI

  • How to get rid of scroll bars in sub panels when displaying a VI which is part of a class?

    I am writing an application that applies different analyses to a set of data. The program must be flexible configurable. To not clutter the GUI with too much elements I ended up with the idea to load the needed user interfaces for each specific analysis dynamically into a single sub panel when needed. This works well without any problem.
    Due to the fact that all analyses share some common functionality I have decided to use LabVIEW classes for implementation. Each class has one VI representing the user interface to show in the sub panel.
    This works also well BUT the sub panel always shows a horizontal and vertical scroll bar I don't want to see!
    I have already learned that I need to change the user interface VI to a custom "Window Appearance" and disable the "Show scroll bar" properties. But this seems to work only for "normal" VIs but not for VIs that are part of a class.
    Any ideas?
    Ingo
    Solved!
    Go to Solution.

    Thanks Pixar, this was the right tip!
    Although: there seems to be a difference between "normal" VIs and VIs that are members of a class.
    For "normal" VIs it is sufficient to set the property to "Off While Running" and it works as expected.
    VIs part of a class need the "Always Off" setting" which is only accessible via right click on the scroll bars but not via the VI's properties box.
    Thanks and Regards
    Ingo

  • Controlling VI from inside the Sub-Panel

    I have a prog which is used as the Main prog and has a sub-panel in it,whenever an event is occured iam popping up an VI,which should be inside the sub-panel,when i press the stop button which is inside the sub-panel,the vi should stop

    And what is the problem....?;-)
    Sub-Panels just show the front panel of the VI you choose to show. When the event that should show a certain VI fires just make your code so that it will run the VI in question...and then set the sub-panel to show that VI. In the VI you need a button and code that will make the VI run until the button is clicked.
    That's it.
    Now you may the VI or multiple VIs to run in parallell, or you may want to send a stop message to the main VI from the VI in the sub-panel when the button is hit...For the first problem, call the VIs using an invoke node and the wait until finished set to false. For the latter problem use e.g. a functional global, que, event, occurance or a notifier.
    If there's a patricular part of this design that you h
    ave a problem with, let us know. If you can upload example VIs we can edit to show the behaviour you need, include those.
    Mads
    MTO

  • Is ist possible to start a vi in a vi sub panel?

    hello,
    is it possible to start a vi with his functionality in a sub panel? or is there another way to do this?
    markus

    I think the answer is yes, it is possible to start a VI within the
    subpanel.  See 'simple.vi' within the examples, or search the
    examples for "subpanel"  You have to use an invoke node to start
    the VI.  See the attached pic of the block diagram.
    Attachments:
    Image1.png ‏19 KB

  • Sub Panel in Application Builder

    My VI has a sub panel with with a sub vi front panel displayed in it.  When I build my application the sub panel is no longer visible.  How do I get it to show up?
    Solved!
    Go to Solution.

    there is a simple subpanel.vi example you can take a look at.
    its in the examples.
    Best regards,
    Krispiekream
    Attachments:
    subpanel.llb ‏23 KB

  • Inability to run VIs in more than one sub panel

    Hello,
    I have a VI that contains a tab control with 8 tabs. Under each tab, I have placed a sub panel. I need to a separate VI in each sub panel simultaneously.
    Using Open VI reference function and without any options,I have Invoked Nodes to Run VI and then insert respective VIs in unique sub panels.
    Apart from a single VI running under a single tab, I am unable to see any of the other VIs running in all other tabs. Error Indicator shows No Error.
    Could someone please tell me how to run multiple VIs, each in a unique sub panel, but under the same tab control?
    I failed to execute a separate VI under a sub-panel that was even placed OUTSIDE the tab control...
    Thanks in advance.

    Hello Freelance_LV,
    Thanks for your response.
    Please find the snapshots of the Front Panel and corresponding Block Diagram of the sample code I intended to use (in Labview 12).
    As you said, I too, was able to switch (insert-remove-re-insert) VIs to execute from a single sub-panel when required.
    However, in this instance, I need to run 8 different VIs in 8 sub-panels simultaneously. Its so that my customer can look at different VIs for different tab selections at any point of time, and at the same time. Sadly, only 1 sub-panel VI seems to be running while the others arent, even though the logic for opening-running-inserting VIs for all sub-panels are the same...
    Attachments:
    SubPanelTestVI - FP.jpg ‏117 KB
    SubPanelTestVI - BD.jpg ‏186 KB

Maybe you are looking for

  • Install 10.6 Server onto a 2010 Mac mini Server

    Hello, I decided to turn the two hard drives on my Mac mini Server into a RAID 1 volume, so I booted from an install DVD of 10.6.3. Now, I am unable to reinstall Mac OS X Server version 10.6, as I have lost the DVD that came with the Mac mini Server.

  • BIOS SETTING, need help! MAXIMUM PAYLOAD SIZE? NEO4 PLAT SLI

    Hi everyone, this is my first post here, and hope someone will help me out.  I've searched the internet, posted on other websites and no one can help me with this question.  What does MAXIMUM PAYLOAD SIZE do?  What is the correct setting for this?  C

  • XPath query works with CLOB but not with object relational

    hi all i have the following queries,the XQuery work with all, but XPath queries work with XMLType CLOB and Binary XML, but they do not work with XMLType as Object relational, select extract (object_value,'movies/directorfilms/films/film [studios/stud

  • How to add new fuctionality without modifying Print Program.

    Hi, This is Venkatrami Reddy. I have a requirement which needs to display Vendor Number in form. So, Please help me on this issue with some example code by using ITCSY Structure. Thanks Venkatrami Reddy

  • Extra bars in score set -- looks like a bug

    I've been working on some tunes and wanted to display both the bass track and the track with lyrics. Logic Pro 8 seems to have some trouble with this. A bug seems to add additional portions of a bar. Check out this screen shot and note the extra bar