Saving data in one file instead of many

Hi. I'm trying to save cursor values so that I can plot them on a graph later on. I've managed to do this, but instead of saving just one file I seem to be saving the same number of files as there are cursors. All the files are exactly the same and contain the data exactly how I want it, but I just want one of them. I'm automatically saving the data when the stop button is pressed in my program and I don't really want to create another button to save the values if I don't have to. Does anyone know how I can solve this?
Thanks in advance.
Attachments:
Labview help.JPG ‏67 KB

Click on the Write To Measurement File vi.  I believe (without seeing your settings) that in the Action Box you have "Save To series of files (multiple files)" selected rather that "Save to one file".
-Matt
-Matt Bradley
************ kudos always appreciated, but only when deserved **************************

Similar Messages

  • How to saving data in csv file

    I have problem with saving data in csv file. I would like save my data look
    like this example :
    excel preview :
    A B C
    1 10 11 12
    2 13 14 15
    As we see all values are in separate cell A1=10, B1=11, C1=12 ...
    so I try :
    PrintWriter wy = new PrintWriter(new FileWriter("test.csv"));
    values[0][0]="10";
    values[0][1]="11";
    values[0][2]="12";
    values[1][0]="13";
    values[1][1]="14";
    values[1][2]="15";
    for (String[] row : values){
    for (String col : row) {
    wy.print(col + "\t");
    but csv file look like :
    A1=10 11 12
    A2=13 14 15
    but B1-B2 and C1-C2 is empty
    the second steep is use Ostermiller library :
    OutputStream out;
    out = new FileOutputStream("temp.csv");
    CSVPrinter csvp = new CSVPrinter(out);
    String[][] values = new String[2][3];
    csvp.changeDelimiter('\t');
    values[0][0]="10";
    values[0][1]="11";
    values[0][2]="12";
    values[1][0]="13";
    values[1][1]="14";
    values[1][2]="15";
    csvp.println(values);
    but the result is also this same, is anyone do how to resolve this problem
    ?

    but iI don`t want to seperate with comma....value
    I
    want to seperate each value to seperate cellWhen you save the file, separate w/ comma
    When excel loads it, it will automagicarifficallyput
    it in it's own cell.what it is "w/ " ? when I separate my data with
    comma excel don`t put value to spererate cells"w/" is an abbreviation of "with". Post the code that doesn't work, along with the results you get. If it's not working with commas, you must be doing something else wrong.

  • Merging PDFs and then saving them as one file in Leopard

    Would someone please tell me how I can merge PDF files into one PDF file. I have been able to drag and drop them together in Preview. I would love to be able to save the merged files into one file. Any ideas. I have read a lot online about this possibility in Snow Leopard, but I can't seem to save the dang file.
    Help.

    Open the first PDF. Open the tray so you can see the file on the left. Drag the other PDFs onto the first file in the tray. You can't just drag into the tray window anymore, you have to drag onto the file itself to merge. Save the file with new name.
    Macmost has a good podcast on this subject that came out about a week ago. Shows other PDF tricks with Preview as well.

  • Problem with saving data in text file in Application server

    Hello Experts,
    I am trying to save a text file in application server.When I text file have less that 60000 (i.e 59999) records, it saves the file successfully, but if records in text file (saved in application server) is more than 60000 (i.e 60002), it creates a new file at the 60000th record with the continued records.
    Can anyone please advise, why it is creating a new file if records are more that 60000. I tested it with 59000 records in my internal table and it is working fine. I have not given any restriction in my program to create a new file if records are more than 60000.
    The logic I implemented is the following:
    *Open file
      open dataset g_accnt_file for output in text mode encoding utf-8.
      if sy-subrc = 0.
        clear g_header_record.
    *Building header record for Accounting Validation file
        concatenate gc_hdr_desc
                    gc_filetype
                    gc_sequence
                    gc_idntf_refresh
                    gc_cmpny_idntf
                    gc_accnt_id
                    sy-datum
                    sy-uzeit
                    gc_linde_group
                    sy-sysid
                    gc_not_used into g_header_record separated by
                                               gc_deliminator.
        transfer g_header_record to g_accnt_file.
    *Move Cost center data to file to create a detail record for Accounting
    *Validation file
        loop at gt_csks into gs_csks.
    *Remove leading Zeros
          call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
            exporting
              input  = gs_csks-kostl
            importing
              output = gs_csks-kostl.
    *      Overlay gs_csks-kostl with space.
    *      SHIFT gs_csks-kostl RIGHT DELETING TRAILING gc_space.
    *Prepare Cost Centre String
          perform prepare_costcentre_string.
    *Prepare detail record with Company Code & Cost Centre
          perform prepare_detail_record.
          clear:g_detail_record,gs_csks,g_coa.
        endloop.
    *Move Order data to file to create a detail record for Accounting
    *Validation file
        loop at gt_aufk into gs_aufk.
    *Remove leading Zeros
          call function 'CONVERSION_EXIT_ALPHA_OUTPUT'
            exporting
              input  = gs_aufk-aufnr
            importing
              output = gs_aufk-aufnr.
    *      SHIFT gs_aufk-aufnr RIGHT DELETING TRAILING gc_space.
    *Prepare Order String
          perform prepare_order_string.
    *Prepare detail record with Company Code & Order
          perform prepare_detail_record.
          clear:g_detail_record,gs_aufk,g_coa.
        endloop.
    *Move WBS data to file to create a detail record for Accounting
    *Validation file
        loop at gt_prps into gs_prps.
          call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
            exporting
              input  = gs_prps-pspnr
            importing
              output = g_wbs_element.
    *      SHIFT g_wbs_element RIGHT DELETING TRAILING gc_space.
    *Prepare WBS Element String
          perform prepare_wbs_string.
    *Prepare detail record with Company Code & WBS Element
          perform prepare_detail_record.
          clear:g_detail_record,gs_prps,g_coa.
        endloop.
    *Building trailer record for Accounting Validation file which will
    *contain the total number of detail records in file
        concatenate gc_trail_desc
                    g_total_count
                    into g_trailer_record
                    separated by gc_deliminator.
        transfer g_trailer_record to g_accnt_file.
    *Close file
        close dataset g_accnt_file.
        if sy-subrc = 0.
          message s036(/lig/fi).
        endif.
      endif.
    endform.                    " SELECT_DATA
    Edited by: Matt on Sep 30, 2010 11:02 AM - added   tags

    Hi Pankaj,
    Can u check the concatenate statement with one more data. Check the no of lines for a single file.
        concatenate gc_hdr_desc
                    gc_filetype
                    gc_sequence
                    gc_idntf_refresh
                    gc_cmpny_idntf
                    gc_accnt_id
                    sy-datum
                    sy-uzeit
                    gc_linde_group
                    sy-sysid
                    sy-subrc
                    gc_not_used into g_header_record separated by
                                               gc_deliminator.
    Regards,
    Amitava

  • How to append data from one file to another

    Hello,
    I am trying to replace one column of numbers in a 2D array with a unique string from another file.
    Pos.    Serial    Gain
     2        3252        4
     4        15697      4
     6        15543      4
    I want to replace the "4" in the third column with a string obtained from another file, such as;
    Serial # 3252 Fuel Cell # arxe-2282
    Time and date 09:47   09/08/07
    Version 4.0
    Serial # 1234 Fuel Cell # arxf-0047
    Time and date 09:50   09/08/07
    Version 4.0
    In this case, I want to replace the "4" in the first row of the top file (after the header) with "arxe-2282" from the file just above.
    This means I need to search though the second file (which will have multiple entries) and find the same serial number (in this case "3252") and then write the "arxe-2282" string in place of the "4" in the top file, right next to the "3252" number there.
    The search part is proving difficult. I can replace the "4" easy enough, but only if I already know where the "arxe-2282" is in the second file.
    Any ideas?
    Tay

    try this.....
    the program uses the match pattern and scan from string functions.  And there is still room for improvement.
    If you have to do is more often with bigger files, you should create a lookup table first. currently the files is scanned each time ....
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    find location.vi ‏11 KB

  • Picture saved as just a file instead of an image

    I saved a picture on photoshop, turned off my computer, and when I turned it back on, I found that my picture was no longer a '.PSD' file but just a file that cannot be opened by my Adobe Photoshop CS3 Extended. Is there any way I can change the file back to a PSD or just a regular JPEG?
    Thanks,
    Emily

    And by "turned off my computer" do you mean "I properly quit out of all applications and shut down"?
    Or, did you just power your system off, or did you put your system to sleep?
    Just to make sure you know, Emily: It's never a good idea to shut down your entire system without first properly quitting all running operations.

  • How to make one file out of many documents?

    Hi, I have a collection of documents created in Pages. I would like to have these available as a single file. I currently have a workaround where I change each document to a PDF, then use Acrobat to create a single PDF from each individual PDF. However this is cumbersome and I would like to maintain the Pages file type.
    I am aware that I cannot insert one Pages document into another - but is there any way to automate or work around this other than copying and pasting each document into a new file?
    Thank you,
    G5   Mac OS X (10.4.6)  

    Hello bottlenose,
    when you are working with Pages 2.x than you can copy and paste the thumbnail pages out of and into the thumbnail views (menu: "View/Show Page Thumbnails") of multiple documents. The only thing you should know is, the inserted style names will be overwritten by the existing styles with the same name. So be sure you have different style names for different paragraph appearances in both documents before you copy them.
    By the way, the is a handy little app called "PDFLab" (grab it here: http://www.iconus.ch/fabien/pdflab/) with which you can combine and split PDF documents (and do a lot of other things) without starting the behemoth Acrobat.

  • Saving Data: Array -- XML file?

    Hi there,
    I have meta data that I want to save in an archive. Should I push this into an multidimentional array then create a method that writes the contents of the array to an xml doc?
    The user will go through a news feed, choose items that are important to the company, then archive the newsfeed metadata (title, URL, source, abstract).
    Thanks in advance for your help!

    If this is an AIR app you can write to disk, but if it is a Flex app can't access local hard drive, though FP 10 might make this possible.
    If the data is small enough you could use a SharedObject, its like a Flex cookie.
    Or just upload data to server and write to file using PHP, Python, etc.

  • Trying to download itunes and the file is saving as a _exe file instead of a .exe file, and i can't open it

    How do you install itunes on windows 7 its coming up as _exe instead of .exe  it doesn't appear to be a program file

    See the Further Information area of Troubleshooting issues with iTunes for Windows updates for download advice and direct links if required.
    tt2

  • Writing data from two different acquisition rates into one file

    Hi,
    I'm using a compactRIO, and I have an anemometer outputting data at 4Hz to the serial port on the controller, and I am using a 9237 module to read strain from two channels at 40Hz. I would like to record all this data in one file, but I'm unsure how to have the data points match up with respect to time since they are read at different rates. Basically I have 10 strain data points for every one anemometer data point, but that one data point needs to somehow be associated with the other 10 read in the same amount of time. It would be okay to "extend" the slower data to the 10 strain points, and likewise to the next ten when the anemometer refreshes its values.
    Thanks for any input!
    Andrew

    Check out the Queue multi-plexer vi from the examples.  C:\Program Files\National Instruments\LabVIEW 2009\examples\general\queue.llb\Queue Multiplexer.vi
    If each data acquisition loop enqueues data to one file writing loop the data is writen in order.  Queues are really a good way to multiplex data sources 
    Message Edited by Jeff Bohrer on 01-29-2010 09:44 AM
    Jeff

  • How to store the data of a file into an ArrayList?

    Hi! everyone.
    I want to know
    if I have a File, and the data in the file are type int, type String...
    And I have a ArrayList which is of type Question
    How do I store the data of that file into the ArrayList
    I tried to use the while loop(use the hasNextLine() to read the data line by line)
    But I cannot add data which are not of type Question to the ArrayList.
    Can you tell me what I should do, please?
    I also wonder that
    The data of the file are of many types, but when I try to read it with the nextLine(), the data all turn out to be of type String. Why?
    Thank you.
    Edited by: Terry001 on Apr 30, 2008 1:13 PM

    No, a line in the file is just part of a question
    The format of the file is like this:
    *<question type code>                    :     String*
    *<question point value>                    :     int*
    *<question category>                         :     String*
    *<question difficulty level>               :     int*
    *<question text>                              :     String*
    *<question correct answer>               :     String*
    *<optional question-specific data>     :     String*
    *<question terminator>                    :     String*
    And here is an example
    TF //TrueFalseQuestion
    5 //points value
    None //category
    3 //difficulty level
    The capital of the United States is Washington, D.C. //question text
    True // answer
    *** //quetion terminator
    I created an ArrayList in the Test class:
    private ArrayList<Question> questions; // Create inside constructor
        public Test (String name, String instr)
            testName = name;
            scoreEarned = 0;
            scorePossible = 0;
            instructions = instr;
            questions = new ArrayList<Question>(); //[MAX_NUMBER_OF_QUESTIONS];
        }And I tried to use the following method to store the data of the file to the ArrayList
    // This method loads a set of questions from a plain text file
        public void loadQuestionsFromFile(String fileName) throws FileNotFoundException
            try
                File fileReader = new File("input.txt");
                Scanner sc = new Scanner(fileReader);
                while (sc.hasNextLine())
                    // I don't know how to pass the data I got from the nextLine() method to the ArrayList because they are of different type
            catch (FileNotFoundException a)
                System.out.println(a);
        }    As all you said, I should create an Question object in the while loop
    Question temp = new Question ();But I have no idea how to pass the int and String to the Question object.
    Thank you

  • Kinect Explorer WPF C# read depth data from the file and conversion to skeleton

    Hello,
    I am using Kinect sensor to do some research on biometrics. Since it is impossible to find people to collect some samples, I would like to use samples from the TUM - GAID database, where there exist Color View and Depth View (in .raw format) samples. Therefore,
    I need to read these samples from the file and do a batch processing, instead of performing real-time collecting of samples (where I can take automatically the Skeleton view using the Kinect SDK). So, I need help on
    1. Reading the data from the file (instead of activating the Kinect sensor) and give this data as an input for conversion to a skeleton
    2. Read the .raw files 
    Thank you very much
    Kind regards

    Hiya,
     I doubt this forum, C Sharp, will provide much help. You are asking about the Kinects system not C#
    language. However, you can try this link; http://kinectforwindows.codeplex.com/
    Hope this help. Thanks :)

  • Writing LabVIEW measurements of two loops (Charge cycle and discharge cycle) in one file

    Hey,
    I was wondering if it is possible to write Labview measurements from two loops (Stacked Sequence Structure) into one file. Currently, it is writing the charging data in one file and discharging data in one file. I have to combine the data everytime to graph the charge and discharge cycles and sometimes there's about 50 cycles and copying and pasting does take up lot of time. 
     I'll try to upload my vi in a bit
    Solved!
    Go to Solution.

    Hey Mike,
    I'm very new to Labview, could you please show an example.
    btw, I attached my vi and I didn't build it
    Message Edited by Support on 07-15-2009 11:27 AM

  • How do I scan numerous documents on Officejet 8600 All-In-One but make them one file?

    I have an HP8600 officejet All-In-one.  I need to scan about 10 pages and make it one file instead of 10 separate sheets.  Can you tell me how to do this?

    LnorWilson,
    Welcome to the HP Forum.
    The following may help.
    Dragon Documents Collection:
    Scan_Multiple_Documents-Combine
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • Can anyone help me write a code about coping data from many files and paste them to one file !?

    Hello ! 
    As I said in title , I have alot files (e.g. 60 files) and I want to write a code to copy 5 columns (for examples) of special sheet of files and paste them in one file respectively. For perceive it I explained it more below .
    Suppose one of my files is simplified as this : http://s000.tinyupload.com/?file_id=00699705919876414523
    The name of  this file is 2006Oct and assume my excel files are like "2006Oct, 2006Nov,2006Dec,2007Jan ... 2010Dec". At first I should go to "my files" sheet of 2006Oct file and copy columns " A,B,C,D,E,F " that has "PerturbationNumber=1"
    respectively and then paste these to a file that is output file and repeat this process for the other files ( 2006Nov and etc ) and paste data in output file sequentially. 
    I appreciate and look foreward for any help in this issue.
    Majid

    Try code below
    Sub CombineBooks()
    Dim wb As Workbook
    Dim sourceSht As Worksheet
    Dim destSht As Worksheet
    Set destSht = ThisWorkbook.Sheets(1)
    destSht.Cells.Clear
    FolderName = "C:\temp\test\"
    file = Dir(FolderName & "*.xlsx")
    firstSht = True
    Do While file <> ""
    Set wb = Workbooks.Open(Filename:=FolderName & file, ReadOnly:=True)
    Set sourceSht = wb.Sheets(1)
    With sourceSht
    sourceLastRow = .Range("A" & Rows.Count).End(xlUp).Row
    If .Cells.AutoFilter Then
    .Cells.AutoFilter 'turn off autofilter
    End If
    .Cells.AutoFilter Field:=6, Criteria1:="1"
    If firstSht = True Then
    Set copyRange = .Range("A1", .Range("E" & sourceLastRow)).SpecialCells(xlCellTypeVisible)
    destSht.Range("F1") = "FileName"
    firstSht = False
    destNewRow = 1
    Else
    Set copyRange = .Range("A2", .Range("E" & sourceLastRow)).SpecialCells(xlCellTypeVisible)
    destNewRow = destSht.Range("A" & Rows.Count).End(xlUp).Row + 1
    End If
    copyRange.Copy Destination:=destSht.Range("A" & destNewRow)
    LastRow = destSht.Range("A" & Rows.Count).End(xlUp).Row
    If destNewRow = 1 Then
    destSht.Range("F2:F" & LastRow) = file
    Else
    destSht.Range("F" & destNewRow & ":F" & LastRow) = file
    End If
    End With
    wb.Close savechanges:=False
    file = Dir()
    Loop
    End Sub
    jdweng

Maybe you are looking for

  • Setting up NWDI for E-Commerce 5.0 and getting" No component configured"

    Hi Experts, Our basis consultant recently installed NWDI. I am having trouble setting up a Track for our E-commerce development. If i try to save my track it gives the message "No component configured". When I try to setup my Runtime sytem and give t

  • Font colors missing from linked ai files (cs4)

    so i have an indesign document with a bunch linked AI files all of which have the same fonts in the same colors (white and light yellow) over the same color backgrounds. earlier this week i printed without a problem. since then i've added a few notes

  • New(?) encoder for a Mac...

    Just thought I would post my own personal experience with this, in the event it may or may not help someone else. I basically straddle both the PC and Apple worlds. I edit SD and HD content on a PC with Edius (from Canopus) and encode most of my cont

  • Problem in Quick Time with "Open location"

    When I try to stream video in Quick Time I get this message: "The operation could not be completed". Here is a video link I used: http://www.youtube.com/watch?v=-IXJSzxIFvU

  • Good deal on a Macbook?

    I'm about to switch to a Macbook and was wondering if this was a good deal I have found on Craigslist. Black 2.0GHz 1GB ram 120 gb HD Snow Leopard, iWork, and iLife installed. $650 sound like a good deal to you? I need it for iWork essentially. Thank