How to save the data to the new file, when you press the button

Hello.

Run a program that reads data recorders seconds and displays a trace on the screen.

What I want, is that when I press a button, the program will ask for a file name and begins to record data to the file, and continues to do this as long as the button is pressed.

When I press the button again, the program asks the name of the file again, so I can select a new file to write.

I've included a simplified version of my program that works by asking the file name at the beginning.

How can I change the program it starts a new file every time that the key again.

Kai,

I changed the example that I gave you to LV8.0, but I have never used the option 'Save for the previous version' before, so I don't know if it will work.

I have combined the start and stop of recording in a single button (just change the text to all what you need) and I used the 'value' property to pass the path between cases. The path can be formatted as you have in your version, don't forget to use the string conversion function filepath.

Just in case where it doesn't work on your version of LV I've attached a screenshot of the block diagram.

Hope this helps, let me know if you have more problems with this.

Easy.

Darren.

Tags: NI Software

Similar Questions

  • How can you write a table to a file when you press a button in Labview 8.5

    I am new to LabVIEW, so I don't know if it's hard or not or can even be done. I have data I am gather and store it in a table in LabVIEW but I want to be able to take all the data table and write in a text or excel file. Another part I want is whether when a user presses a button, in which case they screwed up. Any help would be appreciated. Thank you!

    It is not hard to do. If you have a main loop that collects data continuously, so you can wire just up the Boolean value control to a case structure, so when the button is true you write to the file. It is supposed to be a one-off, or are more than a rocker (which means that you connect so that the button is true)? You can also use a structure of the event. See the "New handler" example that comes with LabVIEW (help-> find examples).

  • Go to the new line when you press shift + enter in the text box

    Hi, I would like to know how to go on a new line in a text box when you press a combination of keys SHIFT + ENTER. (Pressing himself enter causes the text to be erased and expelled for an ObservableList). Here is what I tried:
     text.setOnKeyReleased(new EventHandler<KeyEvent>() {
            final KeyCombination comb1 = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.SHIFT_DOWN);
            final KeyCombination comb2 = new KeyCodeCombination(KeyCode.ENTER);
    
             public void handle(KeyEvent t) {
                    if (comb2.match(t) && !comb1.match(t)) {
                            obs.addAll(text.getText());
                            text.clear();
            }
        }
    }); 
    I'm not aware of any explicit function which allows the accent circumflex positions itself a new line.

    Hello. Please, try the following:

           final TextArea ta = new TextArea();
           ta.addEventFilter(KeyEvent.KEY_PRESSED, new EventHandler() {
    
                public void handle(KeyEvent event) {
                    if (event.isShiftDown() & (event.getCode() == KeyCode.ENTER)) {
    
                            ta.setText(ta.getText() + "\n");
                            ta.end();
    
                        }
                    else event.consume(); 
    
                }
            });
    
  • Change the State of the button when you press another button

    Hi all

    I have a simple enough question, but just does not know how I can do this... I'm trying to switch between the two types of waveforms (sine and square) on a graph using buttons and a box structure.

    I currently have two buttons A and B. When I press A, it turns into real and displays the waveform 1. When I press B, B turns into real and displays the waveform 2. However, when B is true, I still have a permit as true (hurry)

    I can't figure out how to change the status of a return to false when you press B and vice versa.

    I am fairly new to Labview so if anyone can refer to a position where it is already the answer or point to the right direction, that would be appreciated

    Thank you

    Rather than clutter up the code with the event hidden cases (!), controls (!), value properties (!) and variable (!) local (as suggested above but not recommended at all!) In addition, it does not even work correctly!), all you need is a control radiobutton that allows also to "no selection". See attached (LabVIEW 2013). You could also add a third Boolean value for the sine wave and not dismiss "no selection" to make the code even more if auto-documentent.

    I made the transparent container radiobutton to match your existing style.

  • is it possible to put in place a control of the event in labview to create a string indicator when you press a button

    I'm trying to implement a user interface where an operator can set the column headers for a report and I use indicators of the string as the placement for the text in the column headers.  Given that many of them will have experience with Labview, I was hoping to set a button with the ability to add or possible delete a string indicator when you press.  Is it possible to set up an event like this?

    You cannot create an indicator of the string, but you can change the visibility of the existing volumes.

    For example, you can display an indicator of the string, giving the impression that his creating.

    /Y

  • Is it possible to save a part of the data from when you press a button 'save '?

    Hello

    The attached vi below acquires data from a sensor. The signal of the sensor output can be set to zero and the data stored in a file. However, the saved data includes the portion of data when vi starts to run until you press the stop"" button. Is it possible to save the data game from when 'save' button until the button "stop"?

    Best regards

    Ninjatovitch

    This should be at 8.2

  • How to call from one form to another form when you press the button.

    Hi all...

    I have two forms "A" AND "B".

    A form contains two items of text as->customer_id and total_amount

    B form contains two 4 text items like-> customer_id, total_amount, paid_amount and balance.

    A form has a button, pressed button this form must call form b and then the text element of form B customer_id,total_amount take values automatically from shape A customer_id ,total_amount .

    PLEASE HELP ME...

    I call form B from A, with success, but don't understand how to take values automatically from form A fom B...

    Try the PL/SQL code that is used to trigger when-pressed next button:

    Declare

    pl_id ParamList;

    BEGIN

    pl_id: = Get_Parameter_List ('tmpdata');

    IF this is Id_Null (pl_id) THEN

    Destroy_Parameter_List (pl_id);

    END IF;

    pl_id: = Create_Parameter_List ('tmpdata');

    Add_Parameter (pl_id, 'customer_id", TEXT_PARAMETER,: Customer_id");

    Add_Parameter (pl_id, 'total_amount', TEXT_PARAMETER,: Total_amount);

    OPEN_FORM ("B", ACTIVATE, No_Session, pl_id);

    END;

  • Open a URL in a new window when you press the button

    Version: 4.1.1

    Hello

    Under the button options, we can set to redirect to a URL. However, the page opens in the current window. Is it possible to get it to pop open in a new window?

    Thank you
    Ryan

    You can include

    target="_blank"
    

    in your url.
    http://www.w3schools.com/tags/att_a_target.asp

    Or alternatively, you can use (replace the url - I use google for example)

    javascript:window.open('http://www.google.com');void(0);
    
  • (Help!) Have a loop in the scene, and when you press a button, it goes to another scene and ends (with a repeat button)

    I'm newer to ActionScript 3, so I am not sure that what I'm doing.  I hope someone can help!

    Scene 1 (which is long of 40 images), I have this code for the 4 buttons until framework 39-

    import flash.events.MouseEvent;

    Button1.addEventListener (MouseEvent.CLICK, goNormal);

    function goNormal(event:MouseEvent):void {}

    stage.frameRate = 20

    }

    Button2.addEventListener (MouseEvent.CLICK, goMedium);

    function goMedium(event:MouseEvent):void {}

    stage.frameRate = 38

    }

    Button3.addEventListener (MouseEvent.CLICK, goFast);

    function goFast(event:MouseEvent):void {}

    stage.frameRate = 60

    }

    Button4.addEventListener (MouseEvent.CLICK, goEnd);

    function goEnd(e:MouseEvent):void {}

    Stop ("scene 2", 1);

    }

    On the last picture (40), I have "stop();"

    Scene 2, I "play();", so that it plays, and then on the last image of this, "stop()";

    I'm quite confused.

    Basically, I want to make it to where I can have the first 3 buttons change the FPS of the first scene, but I want it loop back (and not go to the stage 2).  I want then press 4 to go to scene 2 and at the end of the file, but with a touch of repetition where it repeats the scene 1.

    Thanks in advance!

    Rather than use stop(); using try framework 40: gotoAndPlay (1);   Who takes care of the loop, that you say you want.

    For the button that will take you to the stage 2, you have the arguments in the correct order.  It should be Stop (framing, stage);

    Regardless of the button repeat you are planning you can have use: gotoAndPlay (1, "scene 1"); assuming that the scene 1 is named as such

  • How to get a glimpse of a PSD file when you click file &gt; open

    My previous topic was not accurate enough.

    In PS CS5 when you click file > open and click a file PSD top see a thumbnail preview. I can't find how to do this in CC because it uses the windows file open and the PS one.

    Does this apply?

    http://feedback.Photoshop.com/photoshop_family/topics/no_psd_image_preview_in_photoshop_on _open_dialog_box_in_windows

  • How to stop a slide automatically advances when you press one button several times in 8 Captivate?

    Hi, I am a beginner of Captivate so I hope someone can help me solve this problem, I found!

    I am trying to create an e-Learning module that I designed a custom at the bottom of the screen reading bar for. This includes a custom button to home/TOC (table of contents) which is linked to the prefabricated Captivate table of contents. I put this button to link to the table of contents, provided that the object is clicked. The function keys work perfectly the first time top, which brings to the table of contents as expected and displays the current slide. When you click the double chevron, it hides the TOC again, showing the State of origin of slides, which is exactly what is needed. HOWEVER! When clicking on the button home again for the second time on the same blade it displays the table of contents in the normal form (which is awesome), but the slide, and then progresses to the next slide automatically (NOT that I would) that I have previous buttons and depending also on the playback bar that control the actions end users.

    If anyone can offer me a solution to my problem, I would be extremely grateful because I can't seem to find someone else with the same problem?

    Thanks in advance

    You replace the simple actions by a line standard actions. Here is a video on YouTube which explains, not to mention the blog that David was pointing to:

    Simple to advanced standard Action in Adobe Captivate - YouTube

  • How to remove a ~ BT of Winload.exe file when you cancel the download of a new operating system?

    I searched throughout the transplant to the winload.exe ~ BT file that was left after an unsuccessful attempt to load Windows 7.  I was not able to delete the file.  Is it possible that he did to the motherboard?

    Hello

    -You are able to boot to the desktop?

    Follow the steps in this link and see if they help.
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/windowsbtsystem-32-winloadexe-error-the-file-is/9d8c40d4-8843-4F90-85a1-418ab9794b5a

  • new tab does not appear when you press the button "open"

    A few days ago I suddenly can not open a new tab when you press the button open tab , press file-> open the tab, or Open the tab button next to a tab...

    Uninstall the toolbar Ask and it should work again. There is a compatibility issue with the Ask and Firefox toolbar that prevents the opening of new tabs.

    There are a few places to check for the Ask toolbar:

  • Turn off the text field (always submits page when you press enter)

    I have an area which allows you to enter search criteria. There are two fields and a button. The 1st field is a selection list that gives a list of columns in a database that can be searched on. The 2nd field is where the user enters the value to search for. The user can submit the search in 2 ways. They can press the button or press return when the cursor is in the 2nd item that is a text field (always submits page when you press enter). The results are then displayed in a region of report below.

    The problem I have, is that if the request is for > 10 seconds and the user gets impatient and hits the Enter key or the button search again the query is returned for a second time (or third or fourth according to the impatience of the user) causing the claim on the basis of data with a negative impact on the performance of the system.

    I know how to handle the search key. On a click event on I turn off the button so that the user cannot click on it again and resubmit the request.

    My question is - how can I turn off "always provides a page when you press enter" text item when the user presses enter? I tried an onclick event, but disabled the front element I could type in anything. Onblur event does not seem to do anything.

    Any ideas would be very appreciated.

    Andy

    Hello

    First of all, one thing to try: attributes of the Page, there is a section for the presentation in double - try setting this option on no.

    Otherwise, using the text field type, adds the following to the INPUT tag:

    onkeypress="return submitEnter(this,event)"
    

    which means, you can call your own function of javascript on the onkeypress event, the final line would be call submitEnter(). But you can set the value of a hidden page element:

    function doEnter(t, e)
    {
     if ($x('P1_SEARCH_RUNNING').value == 0)
     {
      $x('P1_SEARCH_RUNNING').value = 1;
      return submitEnter(t, e);
     }
     else
     {
      return false;
     }
    }
    

    Then, after changing your element to an element of normal text on the attributes of HTML form elements, add in:

    onkeypress="return doEnter(this,event)"
    

    Andy

  • When I press any button on the Windows Live toolbar, I am re-directed to the website of go.microsoft.

    original title: WHAT IS THIS (http://go.microsoft.com/fwlink/?LinkID=199831)

    WHEN YOU PRESS ANY BUTTON ON THE WINDOWS LIVE TOOLBAR I HAVE THE 'GO. MICROSOFT ETC' AS ABOVE ADDRESS THAT PRODUCES A PAGE NOT FOUND IN RESPONSE.

    I DON'T THINK IT'S MALICIOUS SOFTWARE OR OTHER, I REALLY THINK THAT IT IS IN YOUR HOME (MICROSOFT) WITH SOME PROGRAMS OR WHAT WENT WRONG.

    I DO NOT USE THE TOOL BAR LIVE NOW SO THE PROBLEM DOES NOT AFFECT ME, NOT MORE (OR IN OTHER WORDS I HOPE) BE FINE IF I COULD GET RID OF THE ADDRESS.

    ANY PARAMETER ON THE INTERNET OPTIONS PAGE IS NO HELP SO CAN'T THERE GO.

    I AM PLEASED WITH HOTMAIL AND I HAVE NO DESIRE TO BECOME.

    Hi AlexDiverall,

    Thanks for posting your question in the Microsoft answers Forum. For any questions about Windows Live, visit the Windows Live Help solution Center.

Maybe you are looking for