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

Similar Messages

  • Can i pass the values by declaring the continer in sub seq and calling in main seq

    hi,
    In sub seq, i have created the contianer (under parameter) and the continer has array of numbers and array of strings.....
    My question is
    Similar to parameter can i call these container in main seq and can pass the values through these arrays?
    How to find no of elements of array of string or number which is delcared under contianer?
    Pls let me know
    thanks,
    chethan

    I made a small mistake in the previous example, the subsequence calls itself instead of calling it from the mainsequence, please use the attached example.
    Attachments:
    Sequence File 1.seq ‏5 KB

  • 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!

  • Simply way to make sub vi and call it form main vi

    I'm a beginner and have major problems to make a sub vi and call it from main vi. I'm going to do a save dialog where is extra info for my saving and want to call dialog from main vi and after that save info to a file or database. I want that save dialog appears after i press button. I attach sub vi where is no functionality yet.
    Attachments:
    save_dialogsub.vi ‏21 KB

    The first step is to connect the controls and indicators that you want to pass information to and from your main vi.
    You right-click on the icon at the top right corner of the Front Panel and select "Show Connector". Typically put inputs at the left and outputs at the right side of the connector pane. Save it.
    Open the main vi. Go to the block diagram. Click on "Select a vi" inside the Functions Palette. And choose the sub vi you prepared. Then wire it up inside your main vi.
    -JLV-

  • Material exchane ,copy pricing and conditions from main item to sub item.

    Hi All,
    We are using parts exchange/interchangeability in the transaction ME22N,
    While using ME22N we are exchanging  main item with interchangeable part and while doing so we want to copy pricing and conditions from main item to sub item.
    But its not happening.
    As per sap help its possible, details describe below.
    http://help.sap.com/erp2005_ehp_04/helpdata/en/c2/0a5288b77d11d3bcce00105ab03aee/content.htm
    Price Determination by Copying from Main Item
    In the case of price determination by copying from the main item, the net price of the originally ordered part is still used for the superseding part in a part exchange.
    The system copies all conditions from the main item to all sub-items and takes into account the order quantity for the main item when calculating scale prices. It does not take into account the conditions and scale prices that exist for the interchangeable part.
    You cannot change the conditions, which have been copied from the main item, at sub-item level. It is possible, however, to define additional conditions for each sub-item.
    Prerequisites
    A calculation schema, which can be altered on an individual basis in Customizing, has been supplied for the price determination.
    In the vendor master record, you have set the schema group 09 (interchangeable material).
    But in customizing I didnu2019t find value 09 for schema group .
    Can any buddy through some light on missing pieces which need to be set?
    Thanks
    Regards
    Ritesh

    Hi,
    Can you check few more things and tell me?
    - In this exit, does XVBPA and XVBAP contains all the line items. ( main and sub items ).
    - In Sales order creation time, do these table have VBELN populated when this exit triggers.
    - If you modify XVBPA or XVBAP in this exit, do they get overwritten after that.
    Try this code. See if it works.  Let me know if you still have a problem.
    DATA: wa_hvbpa LIKE vbpa,
          wa_xvbpa like vbpa.
    CLEAR: wa_hvbpa, wa_xvbpa.
    * check if HVBAP and VBAP line items are not same
    IF vbap-posnr <> hvbap-posnr.
    * read the ****-to partner from main-item
      READ TABLE xvbpa INTO wa_hvbpa WITH KEY posnr = hvbap-posnr
                                              parvw = 'WE'.
      IF sy-subrc = 0.
    *   read the line item data for sub-item based on main item
        READ TABLE xvbap WITH KEY posnr = vbap-posnr
                                  uepos = hvbap-posnr.
    * See if current line is the child of that BoM parent
        IF sy-subrc = 0.
          MOVE wa_xvbpa-kunnr TO xvbpa-kunnr.
          MOVE xvbap-vbeln TO wa_xvbpa-vbeln.
          MOVE xvbap-posnr TO wa_xvbpa-posnr.
          MOVE 'WE' TO wa_xvbpa-parvw.
          MODIFY vbpa FROM wa_xvbpa.
        ENDIF.
      ENDIF.
    ENDIF.
    Regards,
    RS

  • If only using wifi, will I still receive text messages and calls from non iPhone users?

    If only using wifi (turning off Cellular Data) will I still receive text messages and calls from non iPhone users?

    If you have cell service with a text plan, yes.

  • My Gf has my iphone. How can I see recent messages and calls from another device?

    My Gf has my iphone. How can I see recent messages and calls from another device?

    Depending on your carrier, you may be able to see recent calls by logging into your account on the carrier's web site, if they offer such a feature, though incoming calls being shown is not usual. There will, as diesel said, be no way to see messages already received, either SMS/MMS or iMessages, without having the phone.
    Regards.

  • Can I move my very large iPhoto app and photos from main HD to a larger secondary HD via drag and drop?

    Can I move my very large iPhoto app and photos from main HD to a larger secondary HD via drag and drop?

    Welcome to the Apple Discussions.
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Sub Panel and References

    Hi
    I've a Main.vi including one sub panel to run two different SubVIs sequentially.
    In SubVI1 I want to create a reference that I can use in SubVI2.
    How can I pass the reference from SubVI1 to SubVI2 so that it is still valid in SubVI2?
    I try to do this with a functional global but inside SubVI2 i get the error message: 1025.
    (see attached example)
    Laschko
    Solved!
    Go to Solution.
    Attachments:
    SubPanel_and_Ref.zip ‏31 KB

    Laschko wrote:
    How can I pass the reference created in SubVI1 to SubVI2 if I must stop the SubVI1 before SubVI2 starts?
    You can't. I didn't look at your code, but I'm guessing this is the problem you have.
    Generally, LV automatically destroys a reference when the hierarchy it was created in goes idle. The hierarchy is determined by the top level VI, which is either a VI where you press the run arrow or a VI you run using the Run VI method (which I'm assuming is what happens in your case). Today there is no way of disabling this behavior. Hopefully in the future NI will change it so that references are only destroyed when no one actually uses them.
    The only way to handle this today is to make sure the reference is first created in a hierarchy which will stay in memory. This can be either your main hierarchy or a daemon which you call in the beginning and has the task of creating the references.
    Try to take over the world!

  • Sub VI to enter database data taking more time when calling from main VI

    Hi All,
    I created a sub vi to enter data to a new database, after reading from another database. when i executed that sub vi alone, it took only 2 minutes to enter 20000 records. But when i called that sub VI from my main VI, its taking 35 minutes to enter 20000 records. 
    my maiin vi has another while loop running parallelly which will perform some other operations. How to handle memory in this case? i mean when i call my sub vi from main vi, i need to give complete processor memory for that sub vi. is it possible?
    please help. thanks in advance.
    Sooraj

    Hi Oliver,
    in your example the numeric data is passed from sub-vi to main only when sub-vi terminates, this is what it's supposed to be when you fetch the data from the connector output of a sub-vi.
    You can use queues function to exchange data between sub-vi and main.vi; take a look at the example Message Logging with Named Queue.vi.
    An alternative method is passing to sub-vi a reference of an indicator (or control) and update its value on the fly.
    See example.
    Alberto
    Attachments:
    passing_data_from_sub-vi.llb ‏35 KB

  • Sub-sections values inherit from main section values

    Hi,
    We have a requirement, where once the CDF file is defined for a placeholder on a section template e.g a right teaser, all the sub-sections of the section should inherit the value defined in the main section. So the teaser defined in top section should inherit to all the sections underneath to display the same information define.
    Any thoughts on how this can be achieved, will be of great help.
    Thanks,
    Anurag
    Edited by: 879837 on Aug 23, 2011 12:22 AM

    Look at this link which shows how to pass values from a subreport to a main report.
    http://www.datamanagementgroup.com/resources/trainerstalk/trainerstalk_howto_share_subreport_data_with_main_report.asp
    You can use the same method to pass values from main report to a subreport.
    1) Create a formula @mainFormula in the main report, as given in item 1 of link.
    2) Place this formulla in a suppressed report footer section above the target subreport.
    3) In the subreport, create a formula @subFormula that declares the same variable name, as given in item 3 of link.
    4) Place @subFormula column in the subreport where you want to display it.

  • Controlling video and timelines from main stage. Can it be done?

    The set up:
    I have 3 Symbols on the main Stage.
    Each Symbol has a video and 4 text sections, with the text appearing below the video.
    When the video reaches a certain point, the text changes (for instance, when the video is talking about Widget 1, Text 1 appears, then when it reaches the part about Widget 2, Text 2 appears, etc). Getting and keeping everything synchronized is very important.
    The goal:
    Having a button that will pause both the video AND the text when clicked so they stay in sync.
    The fly in the ointment:
    The goal is pretty easy to accomplish by simply having a button in the Symbol that will stop the text and pause the video. The problem is that since there are 3 Symbols on the stage, when the button is clicked, it needs to stop any other videos that are currently playing. For instance, someone is viewing Video 1, but they decide that they'd rather watch Video 3, so they click on the button for Video 3, but Video 1 (and its Timeline with the text) is still playing after they hit that button. How do I make it so that when they click on Button 3, Video 1 (and its timeline) stops playing?
    The other fly:
    Right now, there are only 3 of these video players on the Stage, but more may be added later. The code I use must be flexible enough to adapt, so I don't have to add additional lines of code to every button every time a new video is added.
    Thanks

    Phil,
    1. Could an Xserve be loaded with a standard version of OSX and operated as if it were a desktop system?
    The general consensus is "yes" but you will lose some of the cool features like hardware monitoring, heat warnings, etc. which might or might not effect your ability to keep an eye on it in odd situations - like hot clubs or cramped DJ quarters.
    2. Does the fact that I'm considering the "cool factor" as it relates to a rack-mounted server make me a complete geek?
    THAT doesn't make you a geek. But it is an outward expression of your inner geek.
    3. Is it odd that I'm okay with that?
    Until you admit you have a problem you really can't seek help.
    Seriously though... I don't think this is a great plan despite whatever respect I have for your geek chic.
    1) You're paying for features and software you'll be throwing away.
    2) Xserves are designed to run in server rooms and air-conditioned offices not in the field.
    3) They are loud. No, really they are... perhaps not the best choice for a DJ.
    4) If an iBook G4 is working for you currently then you don't need the processing power or through-put you're paying for with the Xserve.
    I would suggest getting two low end Intel towers (or you might be able to get away with 1 tower and a mini or something cheap) and then mounting them in a glass lined rolling rack or something like an Xrack. If you're concerned they are "cool or geeky" enough then spend some of the thousands of dollars you'll save on some case mod neon, LED spotlights or those lighted USB cables or the like to "tech them up".
    Congrats on embracing your inner geek,
    =Tod
    G5/2.0x2, Dual XServes x2, XRAID, beige G3 501Mhz    

  • ¿Why sms and calls from the mac does't work?

    I downloaded iOS 8.1 and have yosemite OS installed in my mac. i have tried to use the calls and sms feature but none of this works.
    In the calls when i try to call someone a message pops up saying that i must have an iphone and a mac with the same iCloud and FaceTime account. But the devices that i'm using do have the same accounts and still does't work!!
    I have noticed that my phone number does't appear with a check and that in the FaceTime of my iphone a message down the switch to activates says "waiting for activation", but i can still make normal FaceTime calls.  does this have something to do? how do i fix it? i have tried to reset the settings but everything is still the same.
    In the sms feature the same message "waiting for activation" is down the iMessage title, i can send iMessages but when i try to activate sms a message says "enter the code displayed on the other device" but the code in my mac never shows up. What's the problem here? i have also tried to reset the settings and rebooting the devices but it's the same.   Does this has to do with my phone number being unchecked? the problem is that i can't check it, the opti
    Please help me.

    I have mirror problem:
    I receive calls, but I can't call from my Mac.

  • My iPod touch can't send through I message and call from FaceTime

    I can't send messages in iMessage and all from FaceTime, I already verified my address and registered but I can't send, I hope you can help, please reply immediately..

    Maybe here:
    iOS 5: iMessage not working – how to fix - Apple Toolbox

  • How to call sub VI and close the main VI in while loop and sequence condition

    Hiya,
    I have a problem with the while loop and the sequential condition in placed together i.e while loop as Global and sequential condition as local (i.e inside the Global loop). For example,when calling the sub vi from the main vi (main vi as main menu and sub vi as sub menu.)My problem is I can't run my sub menu when the particular icon is pressed through the main menu and only the front panel appears. My concerned was if possible the sub menu is activated in few second then jump back to the main menu again (analyze through the diagram).So, I don't know what should I need to do. If possible, please advice me how to encountered that particular problem.
    Thanks!

    Go to your block diagram of your main menu, then click on the "Hightlight Execution" it is something like a bulb. then you execute your vi. then LV will show you all your data flow.
    When you feel sad, laugh

Maybe you are looking for