Write Spreadsheet to String Array on another worksheet

hi,
is it possible to write spreadsheet to string array but to an added worksheet?
I am currently writing results to the worksheet, but i want to create another worksheet so that i can put the raw data in.
is it possible?
if so, how?
Best regards,
Krispiekream
Solved!
Go to Solution.

Sorry,
i guess i attached the wrong picture.
i currently have this.
I read from a spreadsheet.
and analysis certain row and column, then do calculation and write the results to a new spreadsheet.
it is working fine.
but as an option. i wanted to "read all the data from the spreadsheet as the previous image" and then write those data to the same new spreadsheet file but in a different worksheet.
Best regards,
Krispiekream

Similar Messages

  • Is there an easy way to replace individual elements in one string array from another striing array?

    I have a string array with elements as follows:
       00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00
       00 00 00 00 5E 00 00 00
       00 00 50 00 30 00 33 00
       34 00 39 00 00 00 00 00
       00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00
    The array I want to use to replace values with is:
    43 4E 31 30 30 33 30 30 31 41
    Where 43 goes in the 3rd row fifth position
    Where 4E goes in the 3rd row seventh position
    Where 31 goes in the 4th row  first position
    Where 30 goes in the 4th row third position
    Where 30 goes in the 4th row fifth position
    Where 33 goes in the 4th row seventh position
    Where 30 goes in the 5th row  first position
    Where 30 goes in the 5th row third position
    Where 31 goes in the 5th row fifth position
    Where 41 goes in the 5th row seventh position
    So the final array looks as follows:
       00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00
       00 00 00 00 43 00 4E 00
       31 00 30 00 30 00 33 00
       30 00 30 00 31 00 41 00
       00 00 00 00 00 00 00 00
       00 00 00 00 00 00 00 00
    Is there an easy way to replace an element of a string within an array with another element of a string within a different array?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    CMM_Add_SCAN_SN_2_PAT_DATA (temp).vi ‏13 KB

    Try this
    Omar
    Message Edited by Omar II on 03-24-2010 03:25 PM
    Omar
    Attachments:
    CMM_Add_SCAN_SN_2_PAT_DATA%20(temp)[1].vi ‏17 KB

  • Pass String Array to Another JSP

    Hi,
    I want to pass a string array to a nother JSP. Could any one pls tell me whether this is possible in JSP,then how. If it's impossible how can i full fill my task.
    Thanks,
    Dumindu.

    Depends on how you are navigating from one jsp to the other.
    For ex: if you are using a forward
    in jsp1
    sthinglike
    String[] strArray = new String[]{"val1","val2","val3"};
    request.setAttribute("arrayatt",strArray);in jsp it can be retrieved as
    String[] ret = (String[])(request.getAttribute("arrayatt"));
    Hope that helps

  • 3D string array to file

    How can I write a 3D string array to file?

    sascha:
    You could do this a lot of different ways.
    The first and most obvious thing that comes to my mind is that you can
    think about a 3D array as an array of 2D arrays. (For that matter a
    2D array is an array of 1D arrays.)
    Thus you could use a for loop to index your 3D array down to 2D and
    then perform multiple writes to write each 2D array "element" of this
    array of 2D arrays to disk. You would probably want to write some
    sort of header which defines how many dimensions there are in the
    array so that whatever reads it back later will have an easier time
    reading it back. (Otherwise you'd have to implement EOF handling for
    the read back portion.)
    To read it back you just use the same logic but build a 3D array using
    a 2D read inside a for loop.
    Dou
    glas De Clue
    LabVIEW developer (looking for a job...
    [email protected]
    [email protected] (SaschaS) wrote in message news:...
    > How can I write a 3D string array to file?

  • Error 5 occurred at Open/Create/Replace File in Write spreadsheet String.vi

    Hi everyone,
    can anyone help me with this problem?
    "error 5 occurred at Open/Create/Replace File in Write spreadsheet String.vi "
    I've been using this part of the program for over a year an suddenly this error occures. But not always, mainly at the very beginning of my tests when the file should not be open.
    Info: I'm using a realtime PXI-System. Maybe the amount of data can cause the problem? (about 2MB)
    Grüße
    Meike
    Attachments:
    writeResults.jpg ‏345 KB
    error5.jpg ‏52 KB

    Hi Meike,
    is the file opened by a different program? Do you try to access it by FTP in parallel to your VI?
    You could use basic file functions instead of WriteSpreadsheetFile. That way you could open the file before starting the loop, keep it open all the time and close it once you're finished - with the added benefit of easier error handling…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I read a formatted excel worksheet as a string array

    I am using the report toolkit to read a excel worksheet as a LV string array.  This works fine except that it reads the full precision of numeric cells (~10 digits of precision).
    In my workbook I have the displayed precision set to 2.  Is there any way to read the table as it is displayed instead of how it is internally stored?  (BTW, I understand how to do this
    manually by parsing the string array and limiting the precision myself but would prefer to use excel itself to determine the precision)
    Solved!
    Go to Solution.

    sachsm,
    This should allow you to get the actual displayed text from an cell or range of cells.  Kind of doing a 'Paste Special' 'Values'.
    Attachments:
    Read Excel Displayed Text.png ‏30 KB

  • Search given string array and replace with another string array using Regex

    Hi All,
    I want to search the given string array and replace with another string array using regex in java
    for example,
    String news = "If you wish to search for any of these characters, they must be preceded by the character to be interpreted"
    String fromValue[] = {"you", "search", "for", "any"}
    String toValue[] = {"me", "dont search", "never", "trip"}
    so the string "you" needs to be converted to "me" i.e you --> me. Similarly
    you --> me
    search --> don't search
    for --> never
    any --> trip
    I want a SINGLE Regular Expression with search and replaces and returns a SINGLE String after replacing all.
    I don't like to iterate one by one and applying regex for each from and to value. Instead i want to iterate the array and form a SINGLE Regulare expression and use to replace the contents of the Entire String.
    One Single regular expression which matches the pattern and solve the issue.
    the output should be as:
    If me wish to don't search never trip etc...,
    Please help me to resolve this.
    Thanks In Advance,
    Kathir

    As stated, no, it can't be done. But that doesn't mean you have to make a separate pass over the input for each word you want to replace. You can employ a regex that matches any word, then use the lower-level Matcher methods to replace the word or not depending on what was matched. Here's an example: import java.util.*;
    import java.util.regex.*;
    public class Test
      static final List<String> oldWords =
          Arrays.asList("you", "search", "for", "any");
      static final List<String> newWords =
          Arrays.asList("me", "dont search", "never", "trip");
      public static void main(String[] args) throws Exception
        String str = "If you wish to search for any of these characters, "
            + "they must be preceded by the character to be interpreted";
        System.out.println(doReplace(str));
      public static String doReplace(String str)
        Pattern p = Pattern.compile("\\b\\w+\\b");
        Matcher m = p.matcher(str);
        StringBuffer sb = new StringBuffer();
        while (m.find())
          int pos = oldWords.indexOf(m.group());
          if (pos > -1)
            m.appendReplacement(sb, "");
            sb.append(newWords.get(pos));
        m.appendTail(sb);
        return sb.toString();
    } This is just a demonstration of the technique; a real-world solution would require a more complicated regex, and I would probably use a Map instead of the two Lists (or arrays).

  • How to activate another worksheet in excel file and write data into it

    Hi,
    I am writing an automation program to collect test data and write the data to an excel file.
    The excel file has several worksheets and now I can only write data to one sheet. Can anyone please let me know how to activate another worksheet and write data into it? Thank you very much.

    You can do a search in the Example Finder for more Excel VIs.
    They will give you a clearer idea of how to go about doing things in the way you need.
    - Partha
    LabVIEW - Wires that catch bugs!

  • How do I write the contents of a string array to file?  Is there a package

    freely avaliable to do this? I am writing a console program that will save the selections made to file. I have convenience packages that came with my book, it allows int and double arrays to be written to file, but not string arrays. Any help would be greatly appreciated.
    Thanks,
    Joe Lavender

    One easy way to do this is to populate a Properties object with the index as the key and the element as the value.
    The properties has built in methods for writing it to file and reading it in.

  • Problems with string arrays

    Previous task was:
    Write a class "QuestionAnalyser" which has a method "turnAnswerToScore". This method takes a String parameter and returns an int. The int returned depends upon the parameter:
    parameter score
    "A" 1
    "B" 2
    "C" 3
    other 0
    Alright, here's the recent task:
    Write another method "turnAnswersToScore". This method takes an array of Strings as a parameter, works out the numerical score for each array entry, and adds the scores up, returning the total.
    That's my code:
    class QuestionAnalyser{
    public static int Score;
    public String[] Answer;
    public static void main(String[] args) {}
         public int turnAnswerToScore(String[] Answer)
    for (int i = 0; i < Answer.length;i++) {
    if (Answer.equals("A")) {
    Score = Score + 1; }
    else if (Answer[i].equals("B")) {
    Score = Score + 2;}
    else if (Answer[i].equals("C")) {
    Score = Score + 3;}
    else {
    Score = Score + 0;}
    return Score;
    this is the error message I get:
    The results of trying to compile your submission and run it against a set of test data was as follows:
    ----------Compilation output--------------------------------------
    javac QATest2.java
    QATest2.java:15: cannot resolve symbol
    symbol : method turnAnswersToScore (java.lang.String[])
    location: class QuestionAnalyser
    if(qa.turnAnswersToScore(task)!=total){
    ^
    What went wrong?
    Suggestions would be greatly appreciated!

    If I declare int score in the method i get this message
    The results of trying to compile your submission and run it against a set of test data was as follows:
    ----------Compilation output--------------------------------------
    javac QATest2.java
    ./QuestionAnalyser.java:20: variable score might not have been initialized
    score++; }
    ^
    ./QuestionAnalyser.java:23: variable score might not have been initialized
    score++;
    ^
    ./QuestionAnalyser.java:27: variable score might not have been initialized
    score++;
    ^
    ./QuestionAnalyser.java:34: variable score might not have been initialized
    return score;
    ^
    4 errors
    ----------Sorry expected answer was-------------------------------
    The method turnAnswersToScore is working OK - well done!
    ----------Your answer however was---------------------------------
    Exception in thread "main" java.lang.NoClassDefFoundError: QuestionAnalyser
         at QATest2.main(QATest2.java:4)
    This is the message I get from the submission page, but trying to compile it I get the same messages.
    The code looks like this, then
    class QuestionAnalyser{
    String[] answer;
    public static void main(String[] args) {}
         public int turnAnswersToScore(String[] answer)
    int score;
    for (int i = 0; i < answer.length; i++) {
    if (answer.equals("A")) {
    score++; }
    else if (answer[i].equals("B")) {
    score++;
    score++; }
    else if (answer[i].equals("C")) {
    score++;
    score++;
    score++; }
    else {}
    return score;
    When I leave 'public int score;' where it was before (right after the class declaration below the declaration of the string array) I get this but it compiles normally.
    The results of trying to compile your submission and run it against a set of test data was as follows:
    ----------Compilation output--------------------------------------
    javac QATest2.java
    ----------Sorry expected answer was-------------------------------
    The method turnAnswersToScore is working OK - well done!
    ----------Your answer however was---------------------------------
    wrong answer in turnAnswersToScore for
    BDCAADDCA
    Alright, even university students need to sleep :-)
    Good night.

  • Bug in writing Integer Data in Hex in Write Spreadsheet File

    It appears that Write to Spreadsheet File forces all data to I64. Try writing an I16 or I32 array with a negative number. Format specification to 4x, 8x or whatever is ignored and you get a full completent of 16 bytes with a lot of FF's at the beginning making it I64 
    Chief Scientific Officer & Ex-Head
    Advanced Centre for Materials Science
    Indian Institute of Technology
    Kanpur 208016
    Phones: +91-512-2597830, 3927830(Off), 2574628 (Res), 9336117477 (Mob)
    Fax: +91-512-2597459
    E-mail: [email protected], [email protected], http://home.iitk.ac.in/~sg

    Hi;
    it's not a bug it's a feature :-)
    Whenever you want to format numbers the formatting routine will try to leave as much digits as needed/possible. When you format I8 then 2 digits are ok, I16 needs 4 digits and so on.
    You can easily test this behaviour when using the 'Array to spreadsheet string' function (it's also used inside 'Write spreadsheet file'). When saving negative integers as Hex formatted ALL digits are needed to describe the number and so you get all of them in your text file!
    The only problem is: 'Write to spreadsheet file' only knows about I64. Whenever you want to save negative numbers you get 16 digits regardless of format string.
    Solution:
    Change the 'write to spreadsheet file' as described before or do the formatting on your own by using 'array to spreadsheet string'!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Format specifiers for spreadsheet to string

    I have used the format specifiers many times before with no problems but this one has stumped me.  I scan a delimited spreadsheet string and convert it to string array.  I then write to a string table.  I would like the format to be X.XXE+N.   I have tried several of the examples to no avail.  One would think that %.2e should do the trick, I sure can't make her work.   All previous posts regarding format specifiers make sense to me, but do not seem to apply to this.  Does the "spreadsheet to string" act differently than other conversions?  Thanks for any help!
    I have included my prototyping trials.  (LV7.1 on XP)
    Attachments:
    format specifiers.vi ‏38 KB

    Thanks Dennis, it is good to have a place to go for answers!
      That is not really what I wanted to hear though, that I would have to change the way I'm doing it, not just change a specifier.  That is going to take at least 1 more function to "wire-up".  Sarcasm is so hard to pen!!
    Gold

  • Write to file string sometimes with quotation marks

    Hi Labview community,
    I have a VI which creates a string array which I then wire to the "Write To Text File" VI.
    One of the elements in the string array is a control input.
    I have noticed that when the input is long, and I open the file in wordpad, then the string has quotation marks around it.
    But when the control string is short, it appears in wordpad without quotation marks.
    Additionally, a later element in the string array is also written with or without quotation marks depending on whether the control input string had quotation marks.
    Can anyone explain this behaviour?  How can I get more certainty in whether the strings are written with quotation marks or not?
    It created a problem for me when another VI parsed the file looking for the line with the string but could not find it when the quotation marks were present.
    Jamie
    Using Labview version 8.0

    Hi Jamie,
    which LabView version do you use?
    Could you attach an eample showing the problem? Normally 'Write to text file' just writes the string that is wired to it. It (normally) doesn't add quotation marks. The only option you can set is 'Convert EOL?' (input up to LV7.1, right-click in LV8+). The help window also didn't mention any quotation marks...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • .csv to a string array

    Hi,
    This is probably a simple problem, but I have a csv file with string values in one column and numbers in another.  For example:
    Volume,    6
    Diameter,  5
    But much larger of a file.
    I would like to be able to read the first column in and come up with an array of just the strings.  I have tried using the Read Text from file into the Spreadsheet string to Array into the Index Array functions, but I cannot seem to get this string array to work out, as it just comes up with 0's for any text.
    If anyone can point me in the right direction it would be greatly appreciated. 
    Thank You!!
    Solved!
    Go to Solution.

    Hi sean,
    you have to convert to an array of strings! Then you will receive your first column as text data...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Example of passing String Array from java to C using JNI

    hi all
    i searched net for passing string array from java to C but i dont get anything relevent
    i have
    class stu
    int rollno
    string name
    String [] sub
    i want to pass all as String array from java to C and access it C side

    1. Code it as though it were being passed to another method written in java.
    2. Redefine the method implementation to say "native".
    3. Run jnih to generate a C ".h" file. You will see that the string array
    is passed into C as a jobject, which can be cast to a JNI array.
    4. Write the C code to implement the method and meet the interface
    in the generated .h file.

Maybe you are looking for

  • Account 715090 requires an assignment to a CO object

    Hi Friends, During Release of an invoice document system is prompting an error as follow. Account 715090 requires an assignment to a CO object LongText     Detail      Diagnosis          You have not defined a CO account assignment for an account    

  • Difficulty reconnecting clips from second project

    Hello, Have recently had problems reconnecting clips I would love some help with! Have a project comprised of about 20 sequences each with its own bin of clips. Copied 10 of these to a separate drive for a friend to help with the editing. Used Media

  • Collapsible Panel Group - automatic close/open?

    Is there a way to set it so the Spry Collapsible Panel Group automatically closes an open panel when you select to open another one? Thank you.

  • Ibooks in itunes on PC not transfering to ipad

    I have ibooks in itunes on a PC laptop.  I want to move them to my ipad2 but they will not copy over.  Please be gentle I am not very well versed with itunes.

  • N95 update - error 1720 message. Any ideas??

    When I try and download the N95 update, i get a message saying 'Error 1720. There is a problem with the windows installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Cust