Multiple front panels

My problem VI consists of a Main UI where the operator can initiate tests. The tests are sub-vi's and I only need one of those active at a time.  However, there are some general routines that I have together in another sub-vi called from the Main UI.  I would like to be able to have one "test" sub-vi and the "general" sub-vi available at the same time in seperate windows.
Presently, I can do this by using the invoke node (VI) to use the run vi method and then fp.open with a seperate invoke node.  I use a functional global variable to keep track of whether there is a "test" sub-vi or a "general" sub vi active to limit each of those to one.  This works well in development mode, but not when the vi is compiled.  It sporadically gives an error when a test or general sub-vi is closed which kills the program in XP.  This error happens all the time in Win2k, so I'd like some insight into fixing it.

What is the exact error that you are receiving? Also, are you familiar with the path issue when building VIs into executables? Recall that the path to a VI changes from ...\VIname.vi to ...\EXEname.exe\VIname.vi when the VI is built into an executable. Since you are calling VIs dynamically, you need to make sure that you are taking this into account when programmatically building paths to VIs.
Kind Regards,
E. Sulzer
Applications Engineer
National Instruments

Similar Messages

  • How can I create multiple front panels for a single block diagram?

    Hello,
       I have developed a VI with multiple controls and indicators that needs to run on computers with screen resolutions ranging from 800x600 to 1680x1050. The problem I'm having is that the front panel does not properly scale for this range of resolutions by checking the options in the "VI properties" option. Is there a way to create multiple front panels of various sizes for my block diagram and programmatically select the appropriate front panel based on the screen resolution?
    Solved!
    Go to Solution.

    See the attached Zip file.
    I have two different front panels.  Open either one and run it.  They both call MainCode.vi which takes the references passed to it and register for events.  From there, it does all the work of the code you would have put in your front panel .vi.
    This way each front panel can be laid out however you want for each screen resolution.
    Attachments:
    MainCode.zip ‏22 KB

  • How can I use multiple front panel controls to be mirrors of each other?

    Hi All:
        I know this is going to be a strange question, but I have multiple inputs that control one output.  This in itself not necessarily difficult, but I have a strange need.  If one of the control inputs change I would like this to be indicated by the other controls.  For example, I have a slider, numeric and dial controls on the front panel that control RPM.  If the slider changes to 1000 RPM I would like the numeric and dial controls to see that change.  Is this possible.  If so, can you give me advice on doing this.  I am using 7.1.  Thanks for the help.
    John Honnold

    What you want is not that hard, but asked for a rather  limited times.
    Here's a how to:
    Drop a slider
    Right click Visible items-> Digital display
    Right click on the slider Advanced-> Customize
    Right click on the Digital display Replace select the control you want to replace it with (a gauge for instance)
    Right click on the Gauge Visible items -> Digital Display
    Now you have one control with three control options:
    This was done in 8.2 but I think the same goes for 7.1
    Ton
    Message Edited by TonP on 04-06-2009 09:52 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_VI.png ‏7 KB

  • Resizing multiple front panel objects

    Is there any way I can select a handful of front panel objects (in this case decorative lines) and size them together to make sure they're all the same length?

    LabView 7 has a re-size button on the toolbar. Select all the objects you want to resize (either by drawing a rectangle around all the objects, or by shift-clicking on them one at a time), then click on the resize button and select one of the options.
    In LabView 6, you'll need to initially get the objects to the same size manually or by copying them. But then, in LabView 6 or 7, if you group a collection of objects, they resize together. Get them to the same size initially, then group them. They'll resize together after that. The LabView User Manual, in a section titled Grouping and Locking Objects states "Grouped objects maintain their relative arrangement and size when you use the Positioning tool to move and resize them."
    To group a collection of objects,
    select all the objects, then click on the Reorder button on the toolbar and select Group.

  • Enabling / Disabling graphs and opening a new Front Panel Window

    Hi,
      I have a simple application of showing 12 analog signals on 12 different graphs placed vertically in aligned position. I have to develop a user interface so that if user wants to display signal no. 1, 4 and 6 out of total 12 signals, he should make selection using check boxes and click a re-draw button. It should result in opening a separate window with these three signals displayed as separate graphs aligned vertically and adjusted to fit window size. Similarly later user can change his selection of displaying signals (from same acquired data) say 1, 3, 5, 6, 8, 9, 11 & 12 and click Redraw button. It should result in opening a new Window showing all these signals as separate graphs which are aligned vertically and resized to fit the window. Now I have two major issues in this context.
    1) I have been searching LabView help to locate a way to open a new window for this purpose but I failed to locate any way for it. As per my limited knowledge, it seems that we cannot have multiple "Front Panel" windows in Labview.
    2) For the graph I could not locate a control to enable/disable a graph so that it appears or vanishes. Is there any way to achieve it?
    I shall appreciate your valuable advice. I shifted from "Lab View Signal Express"  to "Lab View" in order to achieve this user interface design but I am still not successful in finding a good solution for this application.
    Regards
    Mnuet

    Hi Mnuet,
    You can do what was said above. Here is a KB on dynamically loading VIs. It looks something like this.
    Dynamically loaded VIs are loaded at the point in code while running, as opposed to being loaded when the parent VI is loaded into memory like normal subVIs. You can make a reference to them and then control the front panel appearance, their run status, etc with property nodes and invoke nodes.
    Jeff | LabVIEW Software Engineer

  • How do I create tabs on front panels

    Hi everyone. I want to create multiple front panels on the same project. How do I go about this?
    Also, I needed to analyze noise from a thermocouple signal in terms of Probability  Density Function and power spectral density and I don't have a clue yet. Any body any useful info should pls reply.
    Thanks. 

    Well said Lynn..
    I do realize that the discussion has moved away from the original topic
    Are you trying to resolve a problem that would normally be solved using signal conditioning?
    Are you seeing artifacts from 50/60Hz ?
    Did you mention what your thermocouples were connected to or in proximity of?  ie: do you need shielding?

  • 2 front panels, 1 VI, 2 difference monitors???

    Dear all,
    I am building a VI which includes many control buttons and indicators. What I really want now is to put all control buttons in a front panel and all indicators in the other panel. I want to display 2 front panels on 2 difference monitors. I used Vertical splitter bar, it is ok but one screen is not big enough because I want to show many things at the same time. Is there any way for me to do that?
    Thank you for any idea!

    You cannot have a VI with multiple front panels.  You can give the illusion of this using other techniques like subpanels, and Window Parent Child relationships, but I don't think that is what you want either.
    I'm thinking the best way to handle this is with two separate VIs with passing data between them using something like a functional global, queue, user event, or some other method of shareing data to update the UI.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Labview front panel

    dear sir,
          sir i did a program for serial communication in labview to communicate with the embedded system and it is working now...
    and my question???????
           i need to display message from embedded system in one window of the front panel and i need to display parameter (baud rate, start bit, stop bit,etc...)in another front panel ... and this parameter front panel window should open only when i click  button in the message front panel window when i require to change parameter..... can you explain how with some example

    Hi steps,
    Also you can try going through this link. Download the attachments(Main and sub vi) from the post and understand how to activate multiple front panels. You can do it by creating seperate vis with the required parameters and calling them as SubVIs. Also check how the values are passed between these vis through the connector pane terminals. 
    Regards,
    Nitzz
    (Give Kudos to good Answers and Mark it as a Solution if your problem is Solved) 

  • Multiple VI on a Single Front Panel

    Probably a simple question but I'm having trouble figuring out how to do it.
    First, I have LabView 2010, Professional Development System
    I have been trying to learn LabView the hard way.  I've been reading the documentation, starting with Getting Started and testing VI and front panels for instruments we have in the lab.  I can run the examples and control the instruments individually through individual front panels.
    My question is, "How do I create a single front panel (or application), that consists of several instruments?"
    For instance, I have an Agilent 34970, Data Actuisition Unit.  And I can create a front panel (and block diagram) to read data from the instrument input terminals, operate switches, etc.  I also have a GenSys Power Supply and can control the voltage levels and on/off, from it's front panel. But the two panels (and block diagrams) are not linked.
    I have other instruments but understanding how to link two different block diagrams (with single front panel), will help me figure out how to expand it to multiple.
    How do I integrate multiple block diagrams (or VI), with a single front panel (and block diagram) such that I can use loops, structures and conditions in one, that can be used to control the programming in the other.  For instance, say I want to sample an input on the 34970 and if it's between x and y voltage, then set the power supply to another voltage and test again. This requires two VI acting in synchronization with each other. 
    I can do each seperately but am stuck on how to integrate these into a single application.
    Thanks,

    Hi Mike,
    Patricia B is right... You can try sub vi. But if you really want to put two vi's in a same window you can try sub panel. But it is not recommanded... Check these vis....
    <<Kudos are welcome>>
    ELECTRO SAM
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
    - John 3:16
    Attachments:
    Try this.7z ‏26 KB

  • Loading Hex Files with multiple records with each line starting with : record marker, how do I load this hex file into a front panel table ? thanks in advance, Jeff.

    I have written a routine that loads a Hex file, checks for record marker,length,address etc then loads the data into a table on front panel. However, my routine only loads single record hex files. I need to be able to load multiple record files, I need to identify the ':' colon record marker start for each record in the hex file, I just can't see how to loop my routine so that all records with ':' prefix marker are loaded.

    Jeff,
    I'm not exactly sure of what you are trying to do. Is it possible you could post your code, or a screen shot of the diagram in question, so that I can get a better understanding, and possibly offer some assistance?
    I am familiar with hex files, but not with the : marker separating records. This may be able to be solved with simple text parsing, and as I am not familiar with how you are retrieving and/or displaying the files, I require more information.
    Thanks

  • 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

  • Crio to host multiple remote front panels

    Hello all,
    I've a question abt remote front panel hosted by a cRIO system (cRIO9068 to be more specific, running RTOS).
    I have a top level VI (main) as the start up vi in my cRIO system, and it would call a subvi during run. I'd like to enable remote front panel for both the main vi and the sub vi so that I can see both front panels using a web browser. I'm not sure if such a configuration is possible at all and would like to listen to comments by users who have similar experiences.
    Thank you very much!
    Best,
    Jidong

    Hello hhaamm,
    To the best of my knowledge, I don't believe it is possible to host multiple remote front panels from the same executable, and, if it is, would be very difficult. The NI Web Server configuration file only specifies one port on which an executable can run web services, like remote front panels. In, short, I am not sure how you would be able to accomplish this.
    Another thing to keep in mind is that what you want to accomplish can be done in many different ways that would be much easier than creating multiple remote front panels.
    One of these is to move all of your controls and indicators to the top level VI. i.e. make the data you want to see from the sub-VI an output of the sub-VI and create a new indicator for this on your top-level front panel. This way you can still use a remote front panel and can use different decorations and labels to separate the top-level and sub-VI outputs.
    Another way to do this is to use the tab control to create multiple tabs, one for your top-level indicators, and one for your sub-VI indicators. This would still enable you to use remote front panels and would allow for the separation of your different indicators. Here is a note on how to do that:
    http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/creating_tab_controls/
    And here is a more in-depth forum post on how to create them:
    https://forums.ni.com/t5/LabVIEW/how-do-you-create-tabs-on-the-front-panel/td-p/201495
    The final way I can think how you would accomplish this is to use a web service instead of remote front panels and host the output of the sub-VI as a separate website. 
    Hope this helps!
    Collin D.
    Applications Engineer
    National Instruments

  • How is it best to develope a multiple window (front panel) application in LabVIEW?

    I have only been using LabVIEW for a couple months so keep this in mind while I ask this question.
    I have been testing out multiple ways of developing a application using multiple windows and passing data between them, in LabVIEW. I am not sure how to best do this. First (See attached TestApp1.0) I used the Open VI.vi to open and close the VIs as I wanted to use them. This worked well I could have multiple windows open at once and could easily pass data to them by simply laying the VI in the main while loop. The draw back was it required polling and lots of extra logic to open and close the different VIs.
    Next I used the event loop ( see TestApp2.0)and eliminat
    ed the use of Open VI by simply laying the VIs into the event loop and selecting them to display front panel when called. The draw back to this was I could only have one window opened at a time, and since I had to put the SubVIs in loops I could not pass data easily from another form to it while it was running.
    Finally, I have seen examples using a VI server. This looks much more complex and I am not sure if it would be worth the time figuring it out.
    Does anyone have any suggestions for what the best way to design this type of application is? Am I missing something?
    Attachments:
    TestApp1.0.zip ‏31 KB
    TestApp2.0.zip ‏23 KB

    Hello NIBOUND,
    I looked into your "Method 1"-files. That's roughly
    the way I would do this, but I changed the files a
    little bit.
    The subform2 (input of data) is now only called when
    the user wants to input some data. I changed the
    window setting to "Open when called" and "Close after
    run". The other vi subform1 runs the whole time in
    your main loop. Is this wanted? If not, then you can
    change it to the same behaviour as subform2...
    Best regards
    Gerd
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Test1.zip ‏32 KB

  • 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

  • Urgent How to fulfill multiple lines input in CVI front panel?

    Hi Guys,
    I want to paste multiple lines text from other files to CVI front panel, but String, Text Box or List Box can't do when I tried.
    Could some one tell me how I can realize it or show me an example?
    Thanks in advance!

    You can add this functionality by using RunPopupMenu to display your own menu when right-clicking on the control: see this discussion and the example attached to this post.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

Maybe you are looking for

  • Purging application logs automatically in Hyperion 9.3.1 products

    Hi, I am trying to explore purging options in Weblogic server. Could someone help me in finding a setting(if there is one) under Weblogic properties files, which will purge Application logs automatically after 'n' number of days. for example in D:\Hy

  • Downloaded popcorn but won't install

    I just bought popcorn 2.0 and downloaded it from the site. When I try to install it it says to drag into applications folder which I did. When I open it from my appl folder it says the same thing-drag to appl folder- What am I doing wrong?

  • HTTPS sender adapter testing

    Hi All, I need to test a HTTPS (HTTP adapter) -> IDOC scenario. Can you please give some guidance on how this can be done? Can the SOAP UI tool be used for this? Where do I place the client certificates?

  • What happen to front row when i went to mountain lion?

    What happen to front row when I went to mountain lion?

  • MISSING CLASS TAB

    HI! I read book Oracle JDeveloper 10g handbook. And there is "class tab" to open class editor! That is in Hands-on practice: Build a Simple Toplink Application. I use Jdeveloper 10.1.3.3.0, but there no class tab what I need to do??? Best regards Mes