How to make a file explorer work under certain conditions

Good afternoon,
I have built a VI that is basically a file explorer that lets you import data to another application, when a button is clicked, you can navigate throught the directories of your pc searching for a txt file to import and plot some ghraphs. I used the property node "Visible" to show up this file explorer as a window, so every time i click the button, it shows up, but I realize it is processing even if its not being used, like a process running in second plan, thats why I want to make it different, I want to make it run only when the button aforementioned is on true, and to make it I have tried stuff like wiring the button to the loop condition, using a case structure with the button wired and nothing seems to work. How could I do that?
I appreciate your help,
Lucas Faquim
Attachments:
Temperatura.vi ‏337 KB

Faquim wrote:
First of all, thank you for your answer, Hooovahh. I am not an expert programmer, I really dont know the problems around the infinite loop, and dont know what are the issues around thhe abort execution, could you tell me?
To understand this idea, think of yourself as a VI.  You're sent to cook a full meal in the kitchen.  This meal is complex enough it'll require several burners, the sink, a cutting board, and trips to the fridge and cupboards.  I tell you to start cooking and you go about your business getting things going.  At some point, I come in and drag you out of the kitchen and don't allow you to go back.  What state is the kitchen in?  Is the fridge open?  Is the freezer open?  Are the burners on?  Is the oven on?  Is the oven closed?  Will things on the stove boil over creating a mess and potentially a fire?  Who knows?  You're creating the same mess when you hit the abort button.  You're forcing yourself into an uncertain situation that may cause more problems than taking the thirty seconds it'd take to turn your burners off, turn off the oven, and close the fridge door.  You WANT to have a cleanup routine in case things need to stop similar to getting the kitcen into a safe state before leaving.
With an embedded system, there isn't the typical user interface so if it stops, it's likely stopped for a LONG time.  These typically run infinitely until something goes wrong and they shut themselves down.  When you can put a stop button on the front panel and use that, it makes worlds more sense than leaving the kitchen in disarray.

Similar Messages

  • How to make peazip (file archiver) work on 64 bit?

    Hello Archers!
    How do I make peazip run on my 64bit arch?
    The AUR packages are only for 32bit, so I downloaded the portable gtk version (http://downloads.sourceforge.net/peazip … TK2.tar.gz) and I get this
    $ ./peazip
    (peazip:7797): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libindustrial.so: wrong ELF class: ELFCLASS64
    (peazip:7797): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libindustrial.so: wrong ELF class: ELFCLASS64
    (peazip:7797): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libindustrial.so: wrong ELF class: ELFCLASS64
    (peazip:7797): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libindustrial.so: wrong ELF class: ELFCLASS64
    (peazip:7797): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/engines/libindustrial.so: wrong ELF class: ELFCLASS64
    [WARNING] Out of OEM specific VK codes, changing to unassigned
    [WARNING] Out of unassigned VK codes, assigning $FF
    Runtime error 231 at $081BF44D
    $081BF44D
    $08065B2A
    $0837B0DA
    $0813FF72
    $08142419
    $0807A403
    $0807C11B
    $0807E1A6
    $080853C8
    $0805CFE8
    $ file peazip
    peazip: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped
    Do I miss the 32bit gtk librarys?
    I have this "lib32" gtk
    $ sudo pacman -Qi lib32-gtk2
    Password:
    Name : lib32-gtk2
    Version : 2.20.1-2
    URL : http://www.gtk.org/
    Licenses : LGPL
    Groups : lib32
    Provides : None
    Depends On : lib32-libtiff lib32-atk lib32-pango lib32-libxcursor
    lib32-libxinerama lib32-libxrandr lib32-libxi lib32-libcups
    lib32-heimdal lib32-openssl lib32-pcre
    Optional Deps : None
    Required By : foxitreader
    Conflicts With : None
    Replaces : None
    Installed Size : 6348.00 K
    Packager : Ionut Biru <[email protected]>
    Architecture : x86_64
    Build Date : Wed 05 May 2010 06:23:55 PM CEST
    Install Date : Thu 15 Jul 2010 04:10:24 PM CEST
    Install Reason : Installed as a dependency for another package
    Install Script : No
    Description : The GTK+ Toolkit (v2)
    Or do I need other libraries?
    What do I have to do? Thanks!
    Last edited by cyberius (2010-07-15 15:02:33)

    I think you need lib32-gtk-engines.
    EDIT: Never mind doesn't work for me either, lib32-gtk-engines fixes only the wrong elf class message.
    Last edited by Celar (2010-07-18 03:22:41)

  • Ethernet port on MacBook Pro only works under certain conditions

    Since I've purchased my MacBook Pro over two years ago now with an initial installment of OSX 10.5.x, I've had a small annoyance if while the OS was up and running and my physical network interface was disconnected and reconnected, a connection could not be reestablished until I shutdown, restart or put my Mac to sleep and woke it back up with the cable connected to the ethernet port. It would randomly work as it should if I connected and disconnected it over and over again until the machine decided I've stimulated it enough to allow me to use it. But it's recently become a real annoyance for me since the tab on my longest ethernet cable broke and it no longer locks it in place and now the slightest budge displaces the cable and I have to put the laptop to sleep often to reestablish a connection.
    I would opt to Wi-Fi, but my Mac (surprise, surprise) out of 4 other laptops is the only one whose signal is too weak to use where I use them most. I've reinstalled the OS once to no avail months ago and the problem persisted after downgrading to Slowleopard a day after it's release.
    Anyone have any ideas what may be going on? Any help would be appreciated. Thanks.

    Hello DavidJoyce
    Best thing to do is to buy a new Cat 6 Ethernet cable.

  • IPhone speaker only works under certain conditions

    Hi,
    When I try and make calls, I can't hear anything from the person at the other end of the line unless I put the phone on speaker-phone and even then, it still isn't that loud.  Also, when I play music from my iPhone without the headphones connected and the volume on full, no sound comes out.  When I have my headphones connected, the phone and music function as normal and I have no problem hearing.  I would therefore say that there is a problem with the speaker, but I don't know what to do about it.
    Does anyone have any suggestions?
    Thanks,
    Daniel

    Did you already try the suggestions mentioned in the hardware troubleshooting? http://support.apple.com/kb/TS2802

  • How to make "visa find resource" working with Agilent device

    I am trying to use Agilent 82357B GPIB device with LabVIEW for instrument control.
    I have checked:
    1.       NI-VISA (ver 5.1.1) is the primary visa by checking visa.dll properties under windows\system32 folder
    2.       Enable NIVISATulip.dll in NI Max Explorer
    3.       Enable the Agilent libraries to work with NI 488.2 in Agilent IO library (ver 16).
    I am able to communicate with the instrument in Max Explorer and talk to the instrument in LabVIEW with VISA write for almost all commands.
    But I can NOT make one particular visa function (Visa find resource) working with Agilent 82357B GPIB.
    With NI USB GPIB device, the same code above can find attached instruments as below, where GPIB1 is the Agilent device and GPIB0 is the NI device.
    I have no clue on how to make “visa find resource” working with Agilent device.
    Please help.
    Solved!
    Go to Solution.

    Quick question.  Did you also enable 488 support in Agilent? 
    If that does'not work try this.  and well see if you found a bug
    Jeff

  • How to make Jar files in JBuilder

    I would like to know how to make jar files using JBulider. I have a problem with a project that I am working with in Swing. I have made the project on JBuilder and when I make a jar file it will not run upon clicking.
    Any body with an answer, please help
    Abhi

    It sounds like your Main-Class is not set properly in your manifest. To set your Main-Class, please follow these directions:
    http://java.sun.com/docs/books/tutorial/jar/basics/run.html

  • How to do the File Explore Icon?

    How to do the File Explore Icon?
    If you are window user, you simply open My Document folder.
    Is there possible to make My Document interface?
    Can anyone expert give some hints or guide or key word how can I draw the Icon that appear at right handside below?
    I try to do a Virtual File System, that user cannot see his/her local system. Every transaction will be done one the interface that I created...
    Thank you...
    -fsloke

    Hello Govind,
    Make the target str as below
    <root>
    <Row>
    <OrderNo></OrderNo>
    <OrderDesc></OrderDesc>
    <Matno></Matno>,
    <Desc></Desc>
    <Qty></Qty>
    <UOM></UOM>
    </Row>
    </root>
    The mapping for elements
    <Matno>,<Desc>,<Qty>,<UOM> is straight-forward. The node <Row> can be mapped to <OrderItem> node in source. For orderNo and OrderDesc you need to use advanced UDF (with entire queue cached) as below.
    public void getOrderNo(String[] a,String[] b,ResultList result, Container container){
    /Declare a vector to store unique Order Numbers  /Order Desc/
    Vector vOno = new Vector();
         for (int i = 0;i<a.length;i++){
         if (a<i>.equals()ResultList.CC) continue;
         /Add distinct Order numbers to the vector/
         if(!vOno.contains(a<i>)) vOno.add(a<i>);
    int headerCounter = 0;
    String value = new String();
    value = (String) vOno.get(headerCounter);
         for (int j = 0;j<b.length;j++){
         /When context changes, move to next order no/
         if (b[j].equals()ResultList.CC){
                       headerCounter++;
                       value = (String) vOno.get(headerCounter);
                      continue;
         /Repeat the current order number/Order Desc until a context change occurs/
         result.addValue(value);
    The mapping for OrderNo can be like below:
    Pass <Order No> from Header to the UDF as array a[] and <OrderItem> from Item as array b[]. Take the output of the function and make it SplitByValue the result of which can be passed to OrderNo. The context of both < Order No> and <OrderItem> has to be one level higher.
    Similar mapping for OrderDesc can be made using the same UDF
    I hope that resolves your problem.
    Regards
    Amit

  • How to make html file on server side from the data entered in text area

    Hi!
    I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???

    Erm ...
    Whats the problem with that?!
    Ok, here the code ...
    String myparameter = request.getParameter("paramname");
    String htmltemplate = "<html>\n"
                         +"<head><title>demo</title></head>\n";
                         +"<body>@parametertag@</body>\n";
                         +"<html>";
    String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
    File yourHTMLfile = new File("wheredoyouwannagotoday.html");
    FileOutputStream fos = new FileOutputStream(yourHTMLfile);
    fos.write(htmlpage.getBytes());
    fos.close();You're done.
    Happy Coding! :-) &copy;

  • How to make jar files availabe for deployed EJBs

    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
    classpath, but I think that shouldn't be the way. Is there somthing in the admin
    console to make jars available or do I have to insert it in the ear file? And
    if so, where do I hve to place it?
    Thanks
    Claudia

    Put the util.jar in the ear with your ejb jars - at the same level (i.e. in
    the root) - but do not include them in the manifest.xml.
    Also each ejb jar that refers to util.jar must have util.jar on its internal
    classpath in the manifest.
    "Claudia" <[email protected]> wrote in message
    news:3d537db5$[email protected]..
    >
    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
    classpath, but I think that shouldn't be the way. Is there somthing in theadmin
    console to make jars available or do I have to insert it in the ear file?And
    if so, where do I hve to place it?
    Thanks
    Claudia

  • How to make html file from a text field data

    hi!
    I want to know how to make a file with .html extension and the data in this file should be from a text field. like i want to enter some thing in a text area and have to place it in a file on server side in html formate.

    so you told us what you want, but what is your question?

  • How to make a Button to work Actively even if there is a mandatory field..?

    Hi All..
    How to make a Button to work Actively even if there is a mandatory field to be fulfilled..???
    I am badly in need of this logic, as i have to incorporate in my code..
    Points will be rewarded without fail..

    Hi Pavan,
    I also faced the same requirement. U can do one thing like remove the obligatory keyword of that parameter/select-option. U can handle the same using the program in at selection-screen event. See this sample of code,
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:  s_land1 for T005-LAND1 <b>[Needs to be mandatory]</b>                 no intervals no-extension.
    SELECT-OPTIONS:  s_panid FOR zoindex_val-zopanid.
    SELECT-OPTIONS:  s_effdat FOR zoexchrate-zedate.
    SELECTION-SCREEN END OF BLOCK b2.
    *-- AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
      CASE sscrfields-ucomm.
    *-- Obligatory Country Code
      IF s_land1[] IS INITIAL.
        MESSAGE e050 WITH text-050.
                     "Please select the Country Code
      ENDIF.
    So whenever u do F8/Enter other than that push button, it will prompt u to enter the country code first then only u can proceed.
    Hope this would help u in some way. Please do reward the helpful answers.

  • How to make third party cables work on iphone?

    I have been using the original Apple charger cable that came with my phone (iPhone 5C) for a good year, but then it broke. So I bought this non-Apple cable because I didn't really wanna spend a lot of money for an original one. I have already charged my phone with third-party cables before, so I thought it would work. The first time I used the non-Apple cord, there were minor difficulties because I had to plug and un-plug it several times before it actually charged. 2 days later, I plugged an original cable (which was my sister's) to charge my iPhone. Obviously, it worked. But later on, when I went to charge my iPhone with the non-Apple cable, a message popped up (This accessory may not be supported). I dismissed it, thinking it would still charge. No such luck. I tried to unplug and plug it, but still, it won't charge. Now, I have to charge through my laptop. Can anyone tell me how to make third-party cables work? I don't really wanna bring my laptop everytime I charge. I'm planning to only use this cable until I get my hands on an original one. Please help.

    Are you seeing the EE (or T-Mobile) network name and network bars in the top right hand corner of the screen?  Turn off WiFi (Settings>WiFi - turn this off).  Is there anything next to the network name in the top right hand corner (3G, E or o)?  E is Edge and o = GPRS.
    If there's nothing next to the network name, turn off the iPhone and then turn it back on.  To do this, press and hold down the button on the top until you see the 'Slide to Power Off' message.  Slide and then wait for the iPhone to shut down.  To turn it back on again, press and hold the top button again unti lkthe Apple logo shows on the screen.
    EE and signal bars top left = Yes
    Turned off Wifi and next to the EE is 'o' which you say is GPRS? What does that mean please??
    Got this reply from another forum but still no success???

  • How to make word files in mac

    how to make word files, presentations orview such files in mac

    Open Office can be opened in MS Word, and vice versa, looks nearly 100% same as Office and Word but is FREE
    tons use it
    http://www.openoffice.org/download/index.html

  • How to make pdf file auto open with adobe reader after downloaded

    how to make pdf file auto open with adobe reader after downloaded

    I note from your system details that you have the plugin for adobe pdf s so I would have expected the files should open in firefox '''without''' you needing to explicitly download them.
    Once the files are open in firefox, you will also get the option to save them permanently to a location on your computer. If you wish I suppose you could set the file type pdf to be associated with and be opened by firefox instead of with the Adobe Acrobat Reader, but that would just seem to be an additional complexity.

  • How to make material availability check work during Work Order creation

    Hi Experts,
    Kindly advice about these matters:
    1. How to make material availability check work during Work Order creation?
    My requirement is Work Order can not be created when it has missing parts. I have set the config to '3' can not created when is has missing parts, but it still does not work.
    I have implemented SAP Notes 1148139 on my system (SAP ECC 6 Ehp 5) also, but still does not have any effect.
    I must not set the config Res./Purch Doc creation to 'immediately', because it does not fit to my user requirement. Is there anyone knows how to solve this requirement?
    2. How to make information message/ Availability check screen appear when sparepart is missing, without clicking Availability Check button? for example: appear when clicking Save button.
    Thank you
    -amoonra-

    Hi Maheswaran,
    I have implement the prerequisite notes. (Notes 790219 and 1034962). Do you know why it is still does not work?
    Thanks
    -amoonra-

Maybe you are looking for

  • Problem while compiling 'dll' files in Form Server..Urgent

    Hi! I'm trying to compile the library(dll) in form server and getting a message that "can not open that file".At the same time able to compile 'fmb' files which is in the same directory. Could you please help me? Thank you, Denish

  • Increase / decrease the space before / after a table -

    Hi all, I have not found any shortcuts which, after you select a table, modify the space before or after. Does anyone have an idea? Otherwise, an early idea for a [JS]? Thank you in advance! 

  • Newest version of Firefox for Windows will not install.

    After the auto update of Firefox failed to work, I downloaded the full installation file for the most recent version of Firefox (28.0). The setup file extracts but doesn't install. I also cannot find the extracted file(s) on my computer. I have tried

  • Database upgrade during SAP upgrade

    Hi Experts, we are using 4.6C based on oracle db 8.0.5. I have some questions here: 1. if we want ot upgrade both sap and oracle, which one should be upgrade first? sap or oracle? 2. if we only want to upgrade oracle, which tool should we use? BRTOOL

  • Error Id: 30702 on my app world

    hi guys. can somebody help me. i am encountering an error everytime i make downloads on my app world. it states "There is an issue with the current session. Please login to continue. (Error Id: 30702)" i have already changed my blackberry id username