How do I get my executable to not start the main part of my program until I hit a start button?

I am assuming that the best way to do this is to make my current program, the one I want to convert to an executable, a sub vi, and create a new program that places the vi in some kind of loop started by a start button or something. But isn't that just going to start immediately when I convert it into an executable? As well, if that is the way I should do it, how do I get the sub vi's front panel to show up on the fron screen when it is initialized?

Good advice Dennis,
How about simply leaving the program "as-is", but simply wiring a while loop at the very beginning of the vi, that waits until you press "GO" or "Start", which triggers the end of the loop and goes to your existing program. Same as Dennis suggested, except you only have the "start" boolean inside the initial while loop.
Makes it a little cleaner.
Ray

Similar Messages

  • How do I get a one-month subscription to the latest version of InDesign program

    How do I get a one-month subscription to the latest version of InDesign program

    As you can see here, single apps are $29.99/month with no annual commitment.

  • Could not find the main class: SearchExcel.  Program will exit.  ????

    sekic0429{uabudd_milou}[w10/rbssw/2.0] pwd
    /tmp/MyJava/jexcelapi
    sekic0429{uabudd_milou}[w10/rbssw/2.0] printenv CLASSPATH
    /tmp/MyJava/excelapi:/app/jdk/1.6.0_16/jre/lib:/app/jdk/1.6.0_16/lib
    sekic0429{uabudd_milou}[w10/rbssw/2.0] ls
    build ExcelSearch.java index.html resources SearchExcel.java~ tutorial.html
    docs ExelSearch.java~ jxl.jar SearchExcel.class src workbook.dtd
    ExcelSearch.class formatworkbook.dtd jxlrwtest.xls SearchExcel.java TestSpecification.xls
    sekic0429{uabudd_milou}[w10/rbssw/2.0] javac -extdirs . ExcelSearch.java
    sekic0429{uabudd_milou}[w10/rbssw/2.0]
    sekic0429{uabudd_milou}[w10/rbssw/2.0] java ExcelSearch
    Exception in thread "main" java.lang.NoClassDefFoundError: ExcelSearch
    Caused by: java.lang.ClassNotFoundException: ExcelSearch
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    Could not find the main class: ExcelSearch. Program will exit.
    sekic0429{uabudd_milou}[w10/rbssw/2.0] cat ExcelSearch.java
    import java.io.File;
    import java.io.IOException;
    import java.util.Date;
    import jxl.*;
    import jxl.read.biff.BiffException;
    public class ExcelSearch
    public static void main(String[] args)
    try
    Workbook workbook = Workbook.getWorkbook(new File("TestSpecification.xls"));
    catch (IOException e)
    e.printStackTrace();
    catch (BiffException e)
    e.printStackTrace();
    Regards Peter, hope for answer

    r035198x wrote:
    Where is SearchExcel.class?Excellent question, though I think I spotted a problem with the cp supplied.
    Note the documentation for -cp state (in part)
    For example, if directory foo contains a.jar and b.JAR, then the class path element foo/* is expanded to a A.jar:b.JAR, except that the order of jar files is unspecified.So instead of this..
    java -cp /tmp/MyJava/excelapi:/app/jdk/1.6.0_16/jre/lib:/app/jdk/1.6.0_16/lib SearchExcel..try this..
    java -cp /tmp/MyJava/excelapi/*:/app/jdk/1.6.0_16/jre/lib:/app/jdk/1.6.0_16/lib SearchExcelNotes:
    1) Adding the JRE classes to the classpath should not be necessary, but I left the rest of the cp unaltered to highlight the one specific difference I am suggesting.
    2) When posting code, code snippets, HTML/XML or input/output, please use the code tags. The code tags help retain the indentation and formatting of the sample. To use them, select the sample text and click the CODE button.
    If that still fails, tell us more specifically where the SearchExcel class is by copy/pasting the output (within code tags) of the command..
    prompt>jar -tvf mysearchexcel.jarWhere, of course, you replace 'mysearchexcel.jar' with the actual Jar name it is supposed to be located in.
    Edit 1:
    Changed JavaDocs -> documentation.
    Edited by: AndrewThompson64 on Jan 11, 2010 7:12 PM

  • [Jar Executable] Could not find the main class. Progam will exit.

    Hello,
    I am a French person. Excuse me for my English who is not perfect.
    I seek to create an achievable "jar". I followed the instructions given in the url http://java.developpez.com/faq/java/?page=execution#creationJar, and on the site of Sun.
    I have today only one class which I posed in a specific repertory "Class".
    Appli
    |__Class
    |__Src
    |__META-INFThe contents of my "Manifest" is stored in repertory META-INF with the name "Commission2007.MF" and its contents are as follows:
    Manifest-Version: 1.0
    Created-By: 1.5.0 (Sun Microsystems Inc.)
    Main-Class: Commission2007
    .I've left the space line at the end of the file.
    Here the result of execution of my order "jar":
    C:\#Java Dev\2007_Commissionnements>jar cvfm Commission2007.jar META-INF/Commission2007.MF -C Class/ .
    manifest ajout�
    ajout : Class/./(entr�e = 0) (sortie = 0)(0% stock�)
    ajout : Class/./Commission2007.class(entr�e = 9060) (sortie = 4547)(49% compress�s)I controlled the assignment of the extension "jar" in "Working station = > Tools = > Files Option = > Files Type = > .jar Selection = > Advance =
    Open = > Change = >" C:\Program Files\Java\jre1.6.0\bin\javaw.exe "- gravel bank" %1 "% *". Thus not of problem on this side there!When I double click on the file "jar" lately created, I have the error message according to: "Could not find the main class. Progam will exit. " I do not understand the reason of this error. I consulted all the subjects on the treating Net of this subject but without result. I thus call upon you.
    Perhaps that the cause is in my code which however functions perfectly when I carry out it with the order: "Commission2007 java". The class "hand" is quite present to see the code below. You can find the totality of my code on the bond http://www.developpez.net/forums/showpost.php?p=1870361&postcount=74
    import �
    public class Commission2007 extends Frame implements ActionListener, WindowListener
         �
         // Construction de la class EdText
         // D�finition et affichage de la bo�te de dialogue
         Commission2007()
         �
         // D�finition d'une frame pour l'application et affichage de la
         // bo�te de dialogue
         public static void main(String args[])
              Commission2007 editer = new Commission2007();
              editer.show();
              editer.addWindowListener(editer);
    }I thank you in advance for your assistance.
    Cordially, Gilles.

    Salut,
    It has been my experience that it is never a good idea to name your .MF file anything else other than MANIFEST.MF.
    Try naming your .MF file MANIFEST.MF and rebuild your JAR.
    Bon chance.

  • On startup I get a warning "Could not initialize the application' security component...", click OK Firefox starts but I cannot navigate to any URL but home.

    Click the Firefox 4 icon. A window opens with the warning:
    "Could not initialize the application's security component. The most likely cause is problems with files in your application's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features"
    (There are no read/write restrictions on my Applications folder and plenty of room on the hard drive.)
    Click OK and Firefox opens at the home page, but I cannot navigate to any other URL or link. I had the same behavior when I tried FireFox 3)

    First, use a specific [[Managing profiles|profile]] for Firefox 4.0 Beta and keep your current one for Firefox 3.6 to prevent interferences between both versions.
    Then, see [[Could not initialize the browser security component]].

  • How do I get Sign icon is not in the toolbar

    I can't get Sign in the toolbar. I right clicked on the toolbar clicked on file but it does not have Sign listed in the dropdown. Can anyone help me on this. thank you.

    Hi,
    Is this the 'sign' option in Adobe Reader?
    Thanks

  • Midis on newer cards - how do I get them to sound NOT like the Microsoft GS Wavetable SW Syn

    I've decided to upgrade my sound card recently from a <span class="text">Sound Blaster PCI 28 to a X-fi Titanium and to my dismay - my midi files sound EXACTLY like the Microsoft GS Wavetable SW Synth. Wheres the option to change the waveset? The 8mb waveset that is offered for the <span class="text">Sound Blaster PCI 28 made the midis sound WAY better. Is there any equivalent option for the X-fi Titanium or am I forced to mp3 all my midis before I upgrade?
    I can't believe that the latest creative soundcard doesn't have a better midi synthesizer set to default... ?

    Hi Linda. I'm pretty sure the function of the speakers isn't so much connected with iTunes. I'm not sure I understand your question. But that sounds like a good deal on those speakers.
    As for the number of songs, Airsculpture has the answer for that. To find the number of albums, do the same thing (View>Show Status Bar) and then click the pill-shaped button near the center top of the window where you can choose to view by songs, albums, artists, etc. The status will change for each.

  • How can I get my printer to not change the font from any larger number than 10

    Is the problem in the printer or in the computer, I have a Dell windows 7

    I understand that you are finding issues while printing certain fonts with font size >10
    Please try to provide more details about the application software used, printer model and additional information which might help to understand the issue better.
    In general, the application software controls the complete page formatting (page layout, text/font size etc.).  Information or print commands sent by software will override the certain print driver settings and driver will convert the job to printable data.
    Please mark the post that solves your problem as Accepted Solution
    Click the 'Kudos Thumbs Up' if this was helpful. Thank You!
    (Although I am an HP employee, I am speaking for myself and not for HP)

  • HT4718 how can i get osx lion its not on the app store and i have factory reset my macbook pro and now cant download even though i brought it a year ago?

    i might be stupid, but i cant find osx lion which i paid for a year or so ago, all it shows is mountion lion which i would have to buy. anyone have any ideas as to how i can redownload lion osx, 10.7.5 thanks.

    Hopefully, you saved a copy of that ill-designed installer which deletes itself during the installationi process, necessitating wasting resource DLing it over and over again. Sheer madness and toatlly anit-green in behavior.

  • How do I get ringtones that are not listed in the phone

    how do I get ringtones that are not on the phone's list?

        Thanks so much for providing that information sidmorgy. There are options available to do a media retrieval that may provide help with retrieving available ring tones that were previously purchased. You can access the steps here http://vz.to/102YOjg to see if that option will work for you. Please keep us posted on the outcome.
    CandiceH_VZW
    Follow us on Twitter @VZWSupport

  • Problem with message: Could not find the main class Program will exit

    I don't get why this isn't working. Any help is appreciated.
    //Code start
    public class hello{
    public hello(){
    public static void main( String args[] ){
    System.out.println("Hello");
    //Code end
    I compile it as so:
    javac hello.javaIt compiles fine and I now have hello.class in my current directory, but when I type the following:
    java helloI get this:
    Exception in thread "main" java.lang.NoClassDefFoundError: hello
    Caused by: java.lang.ClassNotFoundException: hello
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: hello. Program will exit.

    mring001 wrote:
    That worked. Thank you very much!Good. You should read [_Setting the class path_|http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html] that tells you more about what the classpath is and how to set it.

  • When I use Home sharing, I can see the library I want to copy, but when I highlight the library, the import button does not show up. Also, it will not let me drop and drag. How do I get music from one computer to the other computer?

    When I use Home Sharing, I can see the library I want to copy under Shared, but I can't get it save on the computer under the regular library. I go to edit and "select all" but there is no import button that is in the right hand corner. Also, it will not let me click and drag the music. How do I get it from one computer to the other?

    Since both computers are connected via the network, you could simply copy the ENTIRE iTunes folder from one computer to another via the network.
    If both computers are running Windows, use the Easy File Transfer Utility built into Windows to move iTunes and all other user media/data.

  • HT1904 How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    You've tried deleting and redownloading them and seeing if they then work and tried contacting the developers ? If you have and they can't/won't help then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Hi, I have a new cell phone, I wanted to give my iphone to my father, instead of deleting the content on the iphone I have deleted the entire iphone. It starts up no more. iTunes will not recognize the iphone. How do I get my old data back onto the phone?

    Hi, I have a new cell phone, I wanted to give my iphone to my father, instead of deleting the content on the iphone I have deleted the entire iphone. It starts up no more. iTunes will not recognize the iphone. How do I get my old data back onto the phone?

    Place the device in DFU mode (google it) and restore as new.

  • I am in Saudi and trying to download navigon middle east. Every time I try to buy the app it will show up, says waiting and disappears. How can I get around it and not get lost on these crazy roads?

    I am in Saudi and trying to download navigon middle east. Every time I try to buy the app it will show up, says waiting and disappears. How can I get around it and not get lost on these crazy roads?

    I recently purchased a second hand new macbook air, although it was second hand to me the previous owner had never actually turned it on.
    Something doesn't make sense here, though I'm not saying the previous owner is lying....
    Time to send your serial # to iTS and let them see what's happening here.
    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

Maybe you are looking for

  • Compiler warning: Source folder "server" does not exist and will be ignored

    Hi, i am using NWDS 7.0 SP16. I have a development component type "J2EE Sever Library", which uses a java component. Everything works fine, except during the build i get a warning "Warning: Source folder "server" does not exist and will be ignored.".

  • Issue with Mail and Office365

    I'll start off by saying I work in IT support so I know my way around. I'm having problems seeing email in the native Mail app that came with my Macbook Pro. I can add my Office 365 exchange account and download all the folders but Mail does not show

  • Max no of partitions

    hello folks, Please let me know the following.. 1). Which are the different objetcs on which partitioning can be performed? 2). Is there any restrictions on the max no of partitions? 3). Can repartitioning can be performed on any other BI objects exc

  • Decide target directory dynamically.

    Hi All I need to configure a receiver communication channel with file adapter. Important thing is target directory need to be decided dynamically based on some content in the message.  Please let me know what are the possibilities to achieve this. Th

  • Recipe Base Inventory control system

    hi,. my client would like to start Recipe base inventory for there Hotel - kitchen,. it should be able to link with oracle financial. tell me please which, what and how i can achive this goal. reply me,. also at [email protected] thank in advance