Can't get sub vi to process button pushed in main vi.

I'm trying to control whether or not data will be written to a spreadsheet through the use of buttons on my main panel. I have 5 sets of data and want to be able to tell the program when to save them by pressing a button. To do this, I created 5 sub vi's with the data as the inputs and a boolean control input representing the button. I then created a case structure inside a while loop, displaying nothing when the boolean is true (so the while loop just loops over and over again doing nothing when true) and saving it to a file when it is false, i.e. when button is released. for some reason, even though i wired the button to the appropriate terminal on the sub vi, when i release the button in the main vi, nothing
happens. the loop in the sub vi seems to always read the boolean as true, not comprehending my action in the main vi. However, if I release the button directly on the panel of the sub vi, it comprehends immediately and displays a dialog box for saving. any suggestions?
thanks a ton
yusif

Hello Kim,
I'm attaching my main vi along with 2 of the sub vi's i want to use within it. As you can see in the main diagram, there are 5 while loops that I want to place in sub vi's, but can't because of the problem I described earlier. I tried the global variable approach with no luck, perhaps I'm not implementing it properly though.
i look forward to your response
thanks again...
-yusif
Attachments:
Plot_Intermediate_Vars.vi ‏444 KB
Write_All_SUBVI.vi ‏91 KB
Write_Z_SUBVI.vi ‏44 KB

Similar Messages

  • HOW CAN I GET MY CHANGE IN PROCESSING(got it)?

    Hi all....
       please understand my requiement and get back with your valueble answers...
    iam having one table control in one of my screen....
    in that....table control it contains three fields.... so as we know three columns...
    middle column is for second field...
      here i am changing first entry ( 1st row of second column) manually... and clicking one push button of my screen to do some caluclation part combine with table control entries...
    ex: table controls looks like.....(before)
         1   100 ab
         2   200 gh
         3   300 vf
         4   400 fh
         .. .... ......  etc
    now manual i changed above like....(after)
         1   150 ab       <------ only change
         2   200 gh
         3   300 vf
         4   400 fh
         .. .... ......  etc
    So... here my problem is iam getting my caluculation part with that field as 100 only.... not as 150,
    even i debug this variable with defferent conditions like......
       READ TABLE ITAB WHERE ITAB-F1 = 1.
    SO HOW CAN I GET MY CHANGE IN PROCESSING? WHERE I HAV TO MODIFY MY PROGRAM?
    (edited: prevoius ly this value is capturing correctly...because that calculation part is in the module which is added between chain and endchain)
    Expect Max marks,
    Thanks,
    Naveen
    Edited by: Naveen Inuganti on May 27, 2008 11:57 AM
    dont worry guys i got the answer.... we have to catch that varible in the chain and endchain operater.... by using module.....
    thank you all...
    bye...
    Edited by: Naveen Inuganti on May 27, 2008 3:41 PM
    Edited by: Naveen Inuganti on May 27, 2008 4:00 PM
    Edited by: Naveen Inuganti on Jun 13, 2008 11:44 AM

    Hi,
    I think f2 is a key field in table.So 150 considered as new entry.this case you have to keep 100 for delete from table then add 150 entry.i think you are getting update in itab.But not in table.If you  are not getting itab, post your code to check

  • My Finder is going crazy.  Keep getting a message saying it quit unexpectedly and asking if I want to restore windows, but I can't get it to stop.  buttons don't work.

    My Finder is going crazy.  Keep getting a message saying it quit unexpectedly and asking if I want to restore windows, but I can't get it to stop.  buttons don't work.

    Something else you can try.
    In Finder hold down the option/alt key while selecting the Go menu item. Select Library. Then go to Preferences/com.apple.finder.plist. Move the .plist to your desktop.
    Restart and test. If it works okay, delete the plist from the desktop. 
    If the same, return the .plist to where you got it from, overwriting the newer ones.
    If you want to make your user library permanently visible, run the below command in Applications/Terminal.
    chflags nohidden ~/Library/
    You will need to do that after any updates.

  • So I recently bought 3 new songs, and they won'y show up on my main iTunes Library page or under the artist, but they show up under purchased.  How can I get them to show up under the artist/ main library page?

    So I recently bought 3 new songs, and they won'y show up on my main iTunes Library page or under the artist, but they show up under purchased.  How can I get them to show up under the artist/ main library page?

    Logging out of itunes store and logging in again has worked for some people

  • How can I get the container of a button after the button is clicked?

    I have two components:
    public class A extends JPanel implements ActionListener {
        public A() {
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            // here need to know the instance of B to execute it's process()
            // but I can only know the button jb in B via the following code:
            JButton myjb = (JButton)(e.getSource());
    public class B extends JPanel {
        public ContainerInfoInput(ActionListener al) {
            JButton jb = new JButton("OK");
            jb.setActionCommand("B.ok");
            jb.addActionListener(al);
        public process() {
    public class Main {
        A a = new A();
        B b = new B(a);
    }How can I get the instance of B in which the button is clicked?
    Thank you

    I think it's a defect of the listener mechanism. Under the present circumstance, I must do it like the following:
    I must use another class M as a bridge:
    class A {
        public A() { }   
        public processA (String info ){}
    class B{
        public B(ActionListener al) {       
            JButton jb = new JButton("OK");       
            jb.setActionCommand("B.ok");      
            jb.addActionListener(al);  
       public String processB () {    }
    class M implements ActionListener  {
        public M() {
            A a = new A();
            B b = new B(this);
        public void actionPerformed(ActionEvent e) {
            String command = e.getActionCommand();
            if(command.equals("B.ok")) {
                String information =b.processB();
                a.processA(information);
    }Why not just use A to listen B and obtain instance of B through the ActionEvent?
    Anyone know a solution about it?

  • HT1212 i have a problem, my iphone is disabled and i can not get into it. the power button does not work and the computer i used before i do not have. icloud was not set up on it either. And it will not allow me to connect to my itunes. So what can i do t

    i have read ur forgotten password or device disabled after entering wrong password. iphone is desabled dont have computer i conected it to before and power button is broke so how can i get back into my iphone?

    You will have to restore the phone and set up as New. See: http://support.apple.com/kb/HT1212. The part you need is near the bottom, "If you have never synced your device with iTunes...". You will lose any content that is not backed up in iCloud.

  • I just upgraded to Snow Leopard, and I have Aperture 3.1.3.  Now after I import pics from my camera I get a dialog box so large I can't get to the eject card button.   I have to force quit Aperture.  How do I fix?

    I just upgraded to Snow Leopard, and I have Aperture 3.1.3.  Now after I import pics from my camera I get a dialogue box so large that I can't see the eject card button.  Consequently, I can't get rid of the dialogue box without having to do a force quit on Aperture.  How do I fix?

    I can drag the dialog box, but I can't move it up far enough to get to the eject card button.  The dialogue box contains all the jpeg Numbers I am trying to upload.  It has never done that before.  It used to be just a smal dialogue box with no jpeg numbers in it.
    It is even difficult to get to the Finder with the Dialague box is open.  I have to force quit aperture.
    Any ideas would be appreciated.

  • Can you get to homescreen without home button or gestures

    I have three Ipad"3"s Kiosks that block the home button from users, and restrict access to the power button.
    I want to disable gestures so people can not close out the app randomly, but without gestures and not being able to access the home button without disassembling the kiosk I do not know a way to exit out of anything. As it is if i go into setting and turn off gestures i can not get out of settings.
    Is there a feature I am missing that would allow me to close the app when i need to, for updates or other maintenance? Something other then turning the iPad off and back on that is.
    Any help is appreciated, thank you.
    Bill

    With iOS 6 there is a new 'Guided Access' accessibility function - from here :
    It allows a parent, teacher, or administrator to limit an iOS device to one app by disabling the Home button, as well as restrict touch input on certain areas of the screen.
    Is that the sort of thing that you are looking for ? There is a little bit more info about it in the iOS 6 manual (chapter 26 Accessibility).

  • Can't get Contacts "except my country" button to work

    In Contacts, when printing labels, I can't get the second button related to "country" to work. It is called "except my country", even after selecting the "country" button. This problem occurs when trying to print a page of Avery 8160 labels. I get those buttons to work when trying to print one address only. But when printing labels for multiple addresses, the "except my country" button does not work.

    I can't confirm if this is a bug, but I suspect that it is.
    Send Apple feedback:
    http://www.apple.com/feedback/macosx.html
    In the mean time someone should be along shortly that uses print to confirm if there is a fix or if it's a bug.

  • How can I get the "Multi-Camera Record" button to show up in the Multi-Camera editor?

    I've used the Multi-Camera editor in Premiere for years but in the most recent update (Adobe Premiere Pro CC 2014) I can't get the Multi-Camera Editor to record my camera switches. I looked for the Multi-Camera Record button but it wasn't where it used to be, and even when hitting the plus sign to add more buttons it does not appear in that menu either.
    What am I missing here? Please help. Thank you.

    Did you try it in the program monitor?

  • Can I get rid of the TOC button on the playbar?

    My project is set up to have a TOC and for most of my project I use a TOC button with widget to open the TOC. I am also using the Playback control Pearl for a portion of my project. When in this section where the playback control is active if I choose the TOC button to skip to a portion of the project it keeps the playback control and TOC open even though those slides initially are set to not show the playback control or TOC unless a button is clicked.
    Any help on how to get rid of the TOC button on the playback control or to automatically hide this after you jump to a different part of the project?
    I am using Captivate 5.5 and Windows 7.

    Hi again!
    >> i was always of the idea that FOR BROWSE was to
    >> include the Yellow arrows !!!
    i was too
    now we all now that FOR BROWSE is move effective "bug-feature"

  • Control a while loop in the sub vi using a button in the main vi?

    Dear all,
      I want to be able to control ( turn on or off) a while loop in the sub vi from a button control in the main vi. How can I use the Control Reference to achieve it?
      Thank you in advance. 

    Like this
    look at attached vi's
    Run the main vi
    Attachments:
    main_boolean.vi ‏12 KB
    sub_boolean.vi ‏16 KB

  • How can I get my IMAP account into a push mode?

    I can't seem to get my IMAP account to the Push mode. After I set the account up the only option was to FETCH. IS there a way I can put the account in Push mode?
    Any help is appreciated!

    Take a look at http://lifehacker.com/398526/set-up-push-email-contacts-and-calendar-on-your-iph one-for-free and mail2web.
    But everyone is playing with it right now and so their server is a bit slow.

  • How can I add Internet browser back/forward buttons to the main toolbar?

    The developper of the software I'm testing manages to open
    web-pages in a window within our software. We find this a great
    feature, although it has one downside: no back/forward buttons the
    users have gotten used to thru standard Internet browsers.
    Is there any way to add these classic Internet browsing
    buttons to the main toolbar of a WebHelp output? I've noticed them
    on some other outputs (HTML-help if I'm not mistaken).
    I've noticed some similar topics in this forum, but the seem
    to discuss the browsing sequence buttons, which we find less
    usefull.
    Thanks for looking into this!
    Greetings,
    Olivier

    Hi Olivier
    Take a look at my Skinny on Skins file. There are
    instructions inside on how to accomplish this.
    Cheers... Rick

  • Can't get Sub-forms to Display in Right order

    Hello there
    I have a strange issue with the positioning of a series of sub-forms using Designer 8.2.1.3144.
    I have the following (schematic) structure
    (Top Level Sub-form)
    Sub-form 1
    Label 1.1
    Label 1.2
    Sub-form 2
    Sub-form 2.1
    Test 2.1.1
    Label 2.1.2
    Sub-form 2.2
    Fragment 2.2.1
    Fragment 2.2.2
    The fragments themselves have the following structure:
    (Top Level Fragment, e.g. Fragment 2.2.1)
    Text F1
    Floating Field F1.1
    Floating Field F1.2
    Label F1
    Sub-form F1
    (Lots of fields and sub-forms)
    The fragments themselves are quite long, typically more than a page. Whatever I do, Sub-form 1 (and its labels 1.1 and labels 1.2) are always shown at the top of the final page in print preview, typically breaking up a fragment. Try as I might, I cannot get them to be placed at the very top of the first page (as per the order in the design). I have tried a variety of ways to address the issue, including changing the positioning (flowed \ positioned etc.), and have played around with the keep with next and Allow page break within context settings, all to no effect.
    Any ideas much appreciated.

    Paul
    Thanks for the offer.
    Rather strangley, I made some obstensibly unrelated changes to these fragments and the issue seems to have gone away.
    Never really got to the root of the problem, but am not going to worry about it unless it reappears.

Maybe you are looking for

  • How to figure out the properties of field/object ??

    Hello I have field (say, its name is field_1) in my_form and  i am coloring yellow by using below code of initialization event: this.ui.oneOfChild.border.fill.color.value = "255,255,191"; (Actually, just for differentiating / tracing back purpose her

  • How do I retrieve elements in a xml document ?

    I would like to know how to retrieve elements from xml document ? I have created a document already, but how do I proceed from there ? Also, how do I access the values inside, the attributes and value ? Thank you.

  • Downloading podcasts

    Downloading podcasts is ridiculously slow with iTunes. It takes an hour and a half to download three 40-minute podcasts with iTunes. With Juice it takes less than 5 minutes. What's up??

  • AppLaunchCount on iPhone?

    I was trying to figure out if I could get usage data on third party applications run on an iPod Touch/iPhone. And through a few lucky guesses and useful tools, I found data in the iPhone OS Files containing keys called appLaunchCount.com. and appActi

  • My ipod is full but i cant see any of the songs?????

    I've done something and wiped my ipod.. i copied all my songs from the libary back on to the ipod and it says that it is basicaly full. but when you go into the music there is nothing there???? i can play the music if i go into the hidden folders on