I want to read and use some informations from a excel file

To test a graphic, i need to take a lot of numbers  in a excel file...
but i dont know how to open and read this file but i dont know how...
thx for your help...

Hello,
You can open, read, and even write excel files (if you write a file with extension .xls, windows will interpret it as an excel file be default) using the File I/O VIs in LabVIEW.  To extract the data, all you really need to realize is that spreadsheets programs like excel store data with the following basic rules:
1. the entire spreadsheet is really just a large string - to read them, you just have to know the data you read is stored based on rules 2 and 3; to write them you just have to conform to rules 2 and 3.
2. cells in a given row are delimited by tabs (usually by default) and sometimes commas (but usually only if you set this specifically in the spreadsheet program)
3. rows are delimited by end of line characters, which will usually be one carriage return and one linefeed character in that order on windows.
In fact, for writing spreadsheet strings (which can be opened in excel) from LabVIEW, check out the Array to Spreadsheet String and Spreadsheet String to Array functions in the String Palette.  That is, if you imagine the excel spreadsheet as a 2D array, those functions will essentially convert between the large string, and a 2D array in LabVIEW containing the values you would see in excel's corresponding cells.
I have attached a program that will use the array to spreadsheet string function to write an excel file containing those values - it will be named test.xls and should be on your C: drive directly.  A good exercise to get started would be to write a VI using similar (some inverse) functions to read that string, and convert it back to an array.
I hope this helps!
Best Regards,
JLS
Best,
JLS
Sixclear
Attachments:
Simple Write Spreadsheet String to Excel File.vi ‏25 KB

Similar Messages

  • I have project I want to run and need some information

    Hi
    I have project I want to run and need some information about technical, consultancy, architecture design
    and what I need for this project (hardware and software(
    I planning to stream live streaming 24 channels,
    The feed is analog from pal STB cable or satellite.
    I want to stream in 2 different resolution and bit rates
    1. full screen 750-850k
    2. 240x360    400-600k
    the format is flash h.264
    The channels are series, sport, news, and movie.
    What recommended card (i have osprey 450e)?
    What kind of requirement of computer I need (CPU, MHZ, CORE, RAM).
    can i use i7 cpu or xeon cpu?
    how many channels i can run in 1 computer?
    I need cheap solution for this project around 20-30k$ for hardware.
    thnaks

    I am working on a similar project.
    Actually, i can encode 2 streams in h.264 with a resolution around 640X480 on a Intel Xeon E3120 (2 core) 3.16 GHZ configuration.
    OS is a windows XP 32 bits. CPU usage is around 75%.
    (note: FMLE instances are run with FMLEcmd not GUI mode)
    Does someone know if i can gain performance with windows XP 64bits ?
    My goal is to encode 4 streams on a single machine, does someone know if a dual CPU, let's say 2 X (4 core) Xeon, is enough ?
    I don't know if FMLE support multiple processor with multiple core configuration.
    I am maybe wrong, but after reading this forum, it seems many people have problems using FMLE under windows vista. Do we gain performance on Vista vs XP ?

  • How to read a file and pickup some information from  a file

    Hai all,
    I wrote a beloe program to read a file and write it into another file
    import java.io.*;
    public class Rdata {
    /** Creates a new instance of Rdata */
    public Rdata() {
    public static void main(String a[])throws Exception
    FileReader fr=new FileReader("c:\\java\\attach\\attach2\\resume1.doc");
    FileWriter fw=new FileWriter("C:\\java\\attach\\abc2.doc");
    char ch;
    int i;
    while((i=fr.read())!=-1)
    ch=(char)i;
    fw.write(ch);
    fw.close();
    This program reads the content from resume1.doc and write it into abc2.doc . But in my project I want to read the resume1.doc and and write only peace of information like "keyskills are java,jsp,javamail"
    I mean how to read the entaire file and how to write into another file whisc i require
    Thanks&regards
    radhs

    http://java.sun.com/docs/books/tutorial/essential/io/

  • QR Codes generated and placed in Indesign from an Excel file

    I'm in prepress for a printing company, and we have a project that I'm not sure how to handle. I have an Excel file with 40,000 names, titles, company, address, etc. AND the url for a QR code. I need to generate postcards with all the variable data in place, and use the URL info in the excel sreadsheet to generate a QR code AND place it - all in one action so I can print on the postcards the way I do all my data merge files.
    Does anyone know how to do this? Is it even possible with InDesign?  I would love to hear any solutions to this problem!
    Thanks in advance!

    Hi Cololitho,
    I'm sorry to say at the time we don't have any in-depth documentation on Tada QR! as writing a vast amount of documentation takes a long time! We will add this in time.
    Since Tada QR! handles bulk QRs by a search and replace, it means that if you can find a way to get the URLs into your InDesign document Tada QR can replace them with QRs.
    The formula I used in the video in excel creates a new column that puts the data into the default format for Tada QRs search pattern.
    It looks like this:
    ="<%"&A1&"%>"
    Where "A1" is the name of the cell of the data you want to format.
    I then drag/repeat the cell containing the formula down the length of the spreadsheet so it is repeated for each data item.
    For example if you have urls:
    http://www.urlone.com
    http://www.urltwo.com
    This should create a new column that looks like this
    <%http://www.urlone.com%>
    <%http://www.urltwo.com%>
    If you can get the data in this format and into your InDesign document,
    you should be able to select "Entire Document" and hit the "Replace All" button without having to change any of the default settings.
    This will replace the all the URLs in that format with QR codes.

  • How do I get iTunes to read and import track information?

    How do I get iTunes to read and import track information from compilation CDs? Typically, the compilations have been burned to disk using iTunes or Toast 8 Titanium. I have checked data boxes as available with both softwares. My REGA Planet CD player as well as my car CD player can read the track info but neither my nor my friends' iTunes can read the tracks for importing.

    I don't believe that iTunes can read CDText.
    tt2

  • Reading a PublicKey \ PrivateKey type from a txt file

    Hi,
    i want to read a PublicKey \ PrivateKey type from a txt file and input it into a method.
    How can i read the data from the file while keeping or converting back to PublicKey \ PrivateKey type?
    I'm working with the following:
    generate = KeyPairGenerator.getInstance("ECDSA", "FlexiEC");                              
    generate.initialize(ecParams, new SecureRandom());
    KeyPair keyPair = generate.generateKeyPair();
    ............continues
    **and then i write the keys to the a simple txt file.**
    thanks!
    Edited by: sk16 on Apr 8, 2010 10:03 PM

    So, if i work with the two above is it ok, like:
    generate = KeyPairGenerator.getInstance("ECDSA", "FlexiEC");
                   generate.initialize(ecParams, new SecureRandom());
                   KeyPair keyPair = generate.generateKeyPair();
                   // Pub. and Priv. key objects.
                   PublicKey publicKey = keyPair.getPublic();
                   PrivateKey privateKey = keyPair.getPrivate();
                   // Write keys to separate files.
                   FileOutputStream fos = new FileOutputStream(publicKeyFile);
                   fos.write(publicKey.getEncoded());
                   fos.close();
                   FileOutputStream fos1 = new FileOutputStream(privateKeyFile);
                   fos1.write(privateKey.getEncoded());
                   fos1.close();
    and then for example>>>
    DataInputStream in = new DataInputStream(
              new FileInputStream("publicKeyFile.txt"));
              byte[] encodedPublicKey = new byte[1024];
              in.read(encodedPublicKey);
              in.close();
              X509EncodedKeySpec encodedPublicKeySpec = new X509EncodedKeySpec(encodedPublicKey);
              KeyFactory keyFactory = KeyFactory.getInstance("ECDSA", "FlexiEC");
              publicKey = keyFactory.generatePublic(encodedPublicKeySpec);

  • I bought an iPad 2. The first charge i made Was from the 86% to 100%. After that i used it. But then i read and in some sites say that it has to be charged 24 hours. So Now i have that question i did it well of wrong?

    I bought an iPad 2. The first charge i made Was from the 86% to 100%. After that i used it. But then i read and in some sites say that it has to be charged 24 hours. So Now i have that question i did it well of wrong?

    You can charge anytime. You can also plug it in over night if you want because you can never over charge it.
    http://www.apple.com/batteries/
    http://www.apple.com/batteries/ipad.html

  • How to read some lines from a text file using java.

    hi,
    i m new to java and i want to read some lines from a text file based on some string occurrence in the file. This file to be read in steps.
    we only want to read the file upto the first Occurrence of "TEXT" string.
    How to do it ,,,
    Kinldy give the code
    Regards,
    Sagar
    this is the text file
    dfgjdjj
    sfjhjkd
    ghjkdg
    hjkdgh TEXT
    ikeyt
    ujt
    jk
    tyk TEXT
    rukl
    r

    Hendawy wrote:
    Since the word "TEXT" is formed of 4 letters, you would read the text file 4 bytes by four bytes. Wrong on two counts. First, the file may not be encoded 1 byte per character. It could be utf-16 in which case it would be two byte per character. Second, even if it were 1 byte per character, the string "Text" may not start on a 4 byte boundary.
    Consider a FileInputStream object "fis" that points to your text file. use fis.read(byte[] array, int offset, int len) to read every four bytes. Convert the "TEXT" String into a byte array "TEXT".getBytes(), and yous the Arrays class to compare the equality of the read bytes with your "TEXT".getBytes()Wrong since it relies on my second point and will fail when fis.read(byte[] array, int offset, int len) does not read 4 bytes (as is no guaranteed to). Check the Javadoc. Also, the file may not be encoded with the default character encoding.
    The problem is easily solved by reading a line at a time using a BufferedReader wrapping an InputStreamReader wrapping a FileInputStream and specifying the correct character encoding.
    Edited by: sabre150 on Apr 29, 2009 2:13 PM

  • My apple id is not working on my ipad mini not allowing me to download ios7 and use some apps that need internet

    my apple id is not working on my ipad mini not allowing me to download ios7 and use some apps that need internet

    You change the name of your ID at https://appleid.apple.com.  See http://support.apple.com/kb/HE40.

  • I recently purchased an iMac and used migration assistant to get all files from my emac, but now I have three user accounts.  I only want one (perhaps two) accounts.  I want all my music, photos and word docs from old computer in one user name

    I recently purchased a mac and used a firewire to transfer my files onto my new imac with migration assistant.  Now I have 3 users.  I want one with all my main files (pictures, music, files from my old computer).
    I don't mind having an additional "family" account so my younger daughter can't mess us things, but I can't figure out how to get files from one to the next and then delete the one user name.
    Thanks,

    In order to delete other accounts you must be logged into an admin account. You cannot delete the account into which you are currently logged.
    When you started the new computer you were in the Setup Assistant. You created a new admin account before finishing the setup. You need to log into that account because it is an admin account. You can then delete the account you migrated from the old computer (and any other accounts you don't need or want.)
    Then create a temporary new user account with admin status - name it, Temp. Log out of the current account and log into the new account, Temp. Now delete the initial account you created in Setup Assistant. You now have one account, Temp. Now re-migrate your data from the old computer. When that is completed log into the migrated account, which should be an admin account, and delete the temporary account, Temp.

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I recently upgraded my IMac to Lion and have found that my mail account does not include a "mail trash" category similar to "mail sent", making it difficult to retrieve mails I might have sent to trash but find I need some information from.  Suggestions?

    I recently upgraded my IMac to Lion and have found that my mail account does not include a "mail trash" category similar to "mail sent", making it difficult to retrieve mails I might have sent to trash but find I need some information from.   I've searched in settings and preferences and cant seem to find a way to add "Trash" to my Mail categories/folders.
    Suggestions?

    I recently upgraded my IMac to Lion and have found that my mail account does not include a "mail trash" category similar to "mail sent", making it difficult to retrieve mails I might have sent to trash but find I need some information from.   I've searched in settings and preferences and cant seem to find a way to add "Trash" to my Mail categories/folders.
    Suggestions?

  • Itunes copied my files from my portable harddrive to my new computer harddrive on a new computer. I didn't want that, but didn't realize I did it.  How do I fix this so I can delete the songs from my computer harddrive and use the songs from the portable

    On my new computer I installed Itunes.  I wanted Itunes to use my portable harddrive for music, but instead it copied my library to the hard drive of my computer, filling it almost full.  I didn't realize this happened until I synced my iphone to Itunes.  How do I fix this?  I want to delete the library from my hard drive of my computer, and use the library from my portable hard drive.

    Hi Robin,
    Welcome to Apple Support Communities.
    You may find this article helpful with using a media library on an external hard drive:
    iTunes for Windows: Moving your iTunes Media folder
    http://support.apple.com/kb/HT1364
    Have a good day,
    Jeremy

  • I make greetings cards and use images downloaded from cardmaking websites eg - cently I find I cannot copy and paste an image from adobe reader which is the how the images are downloaded. Why is this and how do I copy and paste an image on a  adobe reader

    copying and pasting images from adobe.     I make greetings cards and use images downloaded from cardmaking websites eg - printable heaven. Recently I find I am unable to copy and paste the images which are opened in adobe reader. Why ?  How can I overcome this problem.

    Check the document properties; is copying allowed?

  • How do I migrate files created in a Windows OS to a new external drive that is formatted as a MAC drive. I want to read and write these files back to the new drive.

    How do I migrate files from an external hard drive created in a Windows OS to a new MAC external drive? I want to read and write these files to the new drive.

    LKrzesowski wrote:
    How do I migrate files from an external hard drive created in a Windows OS to a new MAC external drive? I want to read and write these files to the new drive.
    If all you're trying to do is move the files from the Windows external to the Mac external, you can simply connect them both to the Mac and drag the files from the Windows drive to the Mac drive. If you want to move the files back and forth between them, you'll need to establish the format of the Windows external. Macs can read and write to FAT32 and exFAT (which can handle files larger than 4GB) formatted drives but can only read NTFS formatted drives without additional software. With the Windows drive connected, you can check its format with Disk Utility.

Maybe you are looking for

  • How to connect more than one oracle databases in single form?

    Hi, I have installed Oracle database in three different servers with different users, but the table's structure are same in all three different database users. Now in one D2K form i want to connect and access, all three different database users at a

  • Generation of Interactive file dynamically based on a XML document.

    Hi Experts, I got a new requirement for a dynamic interactive PDF form, can somebody help me if its possible to do so and is fo how ..? I will have a dynamic XML file generated and placed in a location with list of fields, attributes, events and webs

  • 30 Inch Apple Monitor to share with a MacBook & Mac Pro

    I have a MacBook and a Mac Pro, I have (1) 30 Inch Apple Display. What hardware can I get to share the same monitor, say with a touch of a button or something, to share the display with both machines are running. I want to go back and forth with each

  • Oracle SSO not showing up status after rebooting the 10gapplication server

    Hi all, I installed 10g R2 10.1.2.0.2 application server RHEL AS 4.0 2.6.9-11 kernel. After the successful installation IM and MR and MT (BI). All the components in the MT and infrastructure was showing up status. After rebooting the machine i execut

  • My nokia 5230 has killed 2 intenso 4gb microsd car...

    I have a 8 months old nokia 5230, and it has just made 2 microsd cards useless. The first one didn't work after 2 months, just stopped today, i took the battery out from my nokia, restarted it, still nothing, could this be the mobile's fault? it also