Convertion de données xml vers excel.

Bonjour,
Je suppose que cette question à certainement fait l'objet de plusieurs messages, mais je ne les ai pas trouvés.
Comment puis-je stocker des données xml dans un fichier excel ?
Merci pour votre aide.
Cordialement.
Pierre

Bonjour,
Il y a plusieurs manières de lire un fichier xls.Vous pouvez ainsi lire les données de votre tableau directement sous excel.
- Soit vous utilisez les Vis "ecrire un fichier tableur" et "lire un fichier tableur" dans LabVIEW.
Ces Vis enverront les données dans un fichier texte contenant des tabulations. Ces Vis sont simple à utiliser mais limités dans les fonctions.
- Soit vous utilisez ActiveX qui gèrera le tranfert des données de Labview vers Excel.
Il y a un exemple dans LabVIEW pour effectuer cette tache.
Allé dans: aide>recherche d'exemple>communication avec des applications
externes>activeX>Excel > Ecrire une table dans Excel
- Soit vous utilisez "LabVIEW Report Generation Toolkit".
Ce toolkit n'est pas inclus dans toutes les versions de LabVIEW, mais c'est possible que vous l'ayez déjà.
Si vous ne l'avez pas, il est possible de l'acheter.
Vous trouverez, dans le lien ci-dessous toutes les informations concernants ce toolkit.
http://sine.ni.com/nips/cds/view/p/lang/fr/nid/209050
Je reste à votre disposition si vous avez d'autres questions.
Brice S.
National Instruments France

Similar Messages

  • Transfert données fichier XML vers Excel

    Bonjour a tous,
    Dans le cadre de la réalisation d'un Banc de test, je suis ammené à enregistrer un grand nombre de données. Ces données sont actuellement sauvegarder dans un fichier XML et je voudrais construire mon rapport de test excel à partir de ce fichier XML.
    Pour ce faire, j'ai créé au préalable un "Modèle" excel dans lequel les cases importantes à remplir sont identifiées par le nom de la variable (signet).
    J'aimerais récupérer à partir de mon fichier XML le nom (étiquette qui correspond au signet dans excel) et la valeur de mes variables pour ensuite les insérer dans mon fichier excel à l'aide du Toolkit Excel "insérer du texte au rapport".
    Je ne sais pas comment récupérer le nom de mes variables ainsi que leur valeur correspondante à partir de mon fichier XML... il faudrait, je pense les mettres dans 2 tableaux différent, le 1er pour les étiquettes et l'autre pour les valeurs.
    Ensuite il faudrait câbler le tableau contenant les "étiquettes" sur l'entrée "paramètres MS Office" avec un "assembler par nom" pour le cluster, et les valeurs câblées sur l'entrée "Texte" du VI "Insérer du texte au rapport"
    Je ne sais pas si je suis clair dans mes explication mais cela me semble réalisable... Cela me permettrait de pouvoir réutiliser ce VI pour chaque création de rapport de test que j'aurais à faire par la suite car il s'adapterait au nombre de données à renseigner. Je n'aurais qu'a créer mon modèle excel en respectant bien la règle => nom des signets = nom des variables.
    Cela fait un moment que je cherche à faire quelquechose de ce type mais sans succès même en cherchant sur les forums ou sur le net
    Ci-joint un petit "schéma de code" afin d'essayer d'être un peu plus clair.
    Si cette méthode vous parait complètement tiré par les cheveux n'hésité pas à me le dire... Je suis débutant en labview et autodidacte...
    D'avance, merci de votre aide.
    Attachments:
    schema d'idée.jpg ‏306 KB

    Bonjour,
    Le type de données est incompatible. Verifier quel est le type en sortie de la fonction xml. Append Report text attend un cluster de deux I32 pour MS offiche parametre et un string pour Text.
    Cordialement
    Paolo_P
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • EXtraire données Labview vers Excel

    Bonjour,
    J'utilise un Digital Signal Oscilloscope (DSO 5200) connecté à mon ordi. Le but de mon travail est d'afficher dans labview l'évolution de mon signal venant d'un GBF puis de récupérer la tension et le temps pour les mettre dans un fichier txt et Excel.
    Mon problème est que je n'arrive toujours pas à obtenir ni un fichier texte ni excel correct, j'obtient toujours des tonnes de pages de chiffres en fichier texte et je n'arrive pas à les classer dans un fichier Excel. Je voudrais pourtant simplement pouvoir récupérer les X et Y de mon graphe pour en faire un tableau de valeur.
    Je vous joinds mon programme actuel, en espérant que quelqu'un pourra m'aider.
    Merci d'avance ! 

    Hello,
    You're in the English section. Please post here if you want to write in French.
    Your code would need to be improved and refactored because it's hard to read and you have parts of code which are not necessary.
    You can use "Write to Spreadsheet File.vi" if you wish. In this case, here an example which uses this VI :
    LabVIEW: Write and Read from Spreadsheet File without the Report Generation toolkit
    You can also use "Write to Text File" function in order to write your data since Excel files are only a .txt with values which are separated by a tabulation.
    If you choose this solution, there is an example provided in LabVIEW ("Write to Text File and Read from Text.vi" in "labview\examples\File IO\Text (ASCII)" directory)
    You can also take a look at those examples :
    Read/Write From/To Binary/Text File
    Write Data to a Text File When it is a Multiple of X
    Write Array of Data to Text File with Headers
    In fact, there are lot of ways to create your report. You can choose the way you prefer but I suggest you to write in your loop rather than outside. It will allow you to customize each line and it will avoid you to lose all your data if you abort the VI's execution.
    I attached to this post a simple example I created for writing two 1D arrays in a Spreadsheet File.
    Be careful. Excel may be not fit for analyzing large volumes of scattered data. If you plan to store large amounts of data, you can take a look at NI DIAdem.
    Regards
    Jérémy C.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France
    Attachments:
    Write Arrays Spreadsheet.vi ‏18 KB

  • Copier vers Excel les données d'un tableau utilisant Building Tables.vi

    Comment copier vers Excel les données issues d'un tableau utilisant le modèle Building Tables.vi:la fonction copie données (clic droit dans la face avant de Labview ne me propose qu'une copie de fichier image bitmap (on ne peut rentrer les données dans les cases avec un collage spécial texte)
    Remarques: Optimisation d'un programme vi existant
    créer des fichiers supplémentaires tableurs ou .dat est à éviter puisqu' on fait manuellement + de 100 mesures par jour (mesures avec balayage des capteurs sur 4 pistes d'un aimant)
    Gérer directement les données dans la face avant pour les copier entre chaque mesure est primordial
    Problème de la bibliothèque MCAPI32.DLL (elle n'est pas présente dans le système d'origine) et ne peut être chargée en sous vi pour ouvrir le programme principal
    Attachments:
    BOSCDIIessai2.vi ‏777 KB

    Bonjour Alarmarque,
    Ci-joint le VI Building Tables.vi modifié pour que vous puissiez directement écrire les données de la table dans le fichier Excel.
    Il fallait traiter la table avant de l'écrire dans un fichier.
    Pour tester le VI, exécutez-le, puis choisissez un fichier Excel où écrire.
    J'espère que cela vous aidera à avancer dans votre projet.
    Cordialement,
    Sanaa T
    National Instruments France
    Sanaa T.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> http://www.nidays.fr/images/081110_ban_nidays09_468X60.gif
    Attachments:
    Building Tables and Write.vi ‏44 KB

  • Need to convert AP Invoice Aging Report in Excel format

    Hi,
    Need to convert AP Invoice Aging Report in excel format..there was an existing Invoice Aging report in AP and that was in paper format. That we need to convert to rtf template..
    There was an other concurrent program called 'Invoice Aging Report (XML) - Reserveed for future use', when i am using that rtf template..to get the report output it was taking more than 1 hr time.
    1)Is there any way/patch to get that XML report to be used in 12.1.3 EBS version
    2) is there any other way to get the report output faster.
    Thanks..

    Hi,
    When submitting the request, you may change the output to Excel and get the output in Excel. Otherwise as you mention if you getting the output in text format, you may download the text format and open the document in excel and use the delimitation to format in excel as per your requirement.
    1)Is there any way/patch to get that XML report to be used in 12.1.3 EBS version
    2) is there any other way to get the report output faster.
    Is your statistics up to date, when did you last run gather schema statistics program in Sysadmin responsibility.
    Also what is the record quantity that you are expecting here? Is date range parameter available in the report and if yes, did you try running the report for a day to check the output.
    Thanks &
    Best Regards,

  • Adapter Module to convert text message to XML

    Hello Experts,
    I am writing a custom adapter module to convert the text  content to XML message at the sender adapter end.
    I have followed the steps mentioned in the "HowToCreateModulesforJ2EEAdapterEngine" guide available on SDN.
    I have created the java logic in the process mesthod of the bean to conver the text message to XML paylod (don't know if it is correct). I do not have much idea about the Adpater API methods.
    Can anybody help me with the logic to convert the text msg to xml paylod using adapter frame work APIs or is there any way I can debug and test my logic in NWDS.
    Any help will be greatly appreciated.
    - Rajan

    Hi ,
    To convert Text message to XML why yiu want to go for Adapter Module?? Using file content conversion it self you can do it right?????
    There is no standard logic to convert text file to XML, the logic purely depends on your text message format.
    Regards,
    Raj

  • Reference Library for Converting Between LabVIEW and XML Data (GXML)

    Please provide feedback, comments and questions on the Reference Library for Converting Between LabVIEW and XML Data (GXML) in this thread.
    The latest version of the NI GXML Library is availble in VIPM on the NI LabVIEW  Tools Network repository.

    Francesco, Thank you for the feedback.  With this component it was my intention to make a more "terse" version of the LabVIEW Flatten to XML VI that was also supported on RT and that gave the user more flexbility regarding the structure of the parsing type definition. I think you are right that the XML parser is not compliant to section 2.11 of the XML spec.  The parser does specifically looking for a #D#A and this appears to be an oversight on my part.  Please confirm for me, the specifcation is saying that the XML parser should be able to recognize three possibilities as an "end of line" character: #D#A, #D, or #A.  Am I reading this right?There are more efficient (and in some cases much more efficient) ways of sharing data between LabVIEW and LabVIEW: some examples are flattened binary strings and the datalog binary format.  XML is slower than these optons but the upside is that it is human readable.  Furthermore XML is inherently hierarchical which is convenient for complex data structures like clusters of arrays of clusters, etc.  If you don't care about human readability then you are correct XML doesn't make as much sense.I will return to the GXML source code and try to fix this in the near future but I would hope that instead of creating yet another custom VI from scratch that you could reuse what I have provided for you.  I included enough documentation in the source code so that users could make some modificiations themselves. The target application for this reference library was LabVIEW to LabVIEW communication.  As such I documented the schema on the dev zone document from a LabVIEW perspective.  It includes all the supported datatypes and all the supported data structures (cluters, arrays, multidimensional arrays, clusters of multidimensional arrays, etc.)  I do see some value in making a more conventional XML spec but the time investment required didn't really line up with my intended use case. Were there any other downsides to GXML that I have missed?  Best Regards, Jeff TippsSystems Engineer - Sound and VibrationMessage Edited by Jeff T. on 04-21-2010 10:09 AM

  • How to convert Xls file into Xml file

    Hi,
    I am trying to convert Xls file into Xml  but there  is no any direct procedure for it
    Pls help me out to convert Xls file into Xml file
    Thanks
    Anushree

    you will require to write a module in your file adapter for the same.
    ref: /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter as mentioned in the earlier post.
    Else you can also use Conversion Agent to read the same.
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm

  • Transférer tableau vers excel existant

    Bonjour, et tout d'abord, merci de votre attention.
    Actuellement j'ai développé un petit programme qui permet de générer un tableau de données en chaîne. Par appui sur une commande et utilisation du noeud de méthode "exporter vers excel", j'arrive sans problème à créer un fichier excel dans lequel je retrouve le tableau de données du début.
    Comme vous l'avez compris, à chaque fois que j'utilise ce programme je génére un nouvel excel, et j'aimerais donc pouvoir faire en sorte qu'à chaque utilisation, les données du nouveau tableau soient ajoutées au fichier excel  de mon choix, sans remplacer les données existantes mais bien ajouté à la suite.
    Comment procéder donc?

    Bonjour,
    1: ouvrir d'abord le tableau Excel, lire les données, ajouter les nouvelles et écraser le tableau Excel de départ.
    2: utiliser les ActiveX. En cherchant un peu il y a des exemples inclus à LabVIEW. Vous pouvez pilotez Excel avec LabVIEW: ouverture du fichier, ajout de données dans telle ou telle cellule... un peu plus dur à manipuler, mais permet de ne pas perdre la mise en forme; plus puissant que solution 1
    Francis M | Voir mon profil
    Certified LabVIEW Developer

  • Importation Donneés XML dans un formulaire

    Bonjour
    J'ai un problème d'importation de fichier de donneés xml dans un formulaire Adobe Acrobat.
    Le fichier de données est issu d'un tableau excel que j'ai mappé selon les directives issues de l'aide excel.
    Ce tableau comprend bien sûr plusieurs lignes; une ligne correspond aux champs pour un formulaire.
    Si l'importation se fait sur une seule ligne; celle-ci est correcte.
    En revanche, si un tableau à plusieurs lignes, donc plusieurs formulaires, est importé dans le formulaire vierge, rien ne se passe.....
    Pouvez-vous m'éclairer  à ce sujet?
    Merci

    Bonjour
    Oui : je voulais donc dire par "Rien ne se passe" que l'importation de données xml provenant d'un tableau à plusieurs lignes, que lorsque je tente d'importer ces données dans le formulaire vierge, celui-ci ne se remplit pas.
    Contrairement à l'importation d'un fichier XML qui ne contient des valeurs que pour un formulaire.
    Je complète donc ma question : comment faire pour renseigner un formulaire différent, donc plusieurs formulaires en finalité à partir d'un fichier XML contenant des données issues d'un tableau Excel mappé pour çà?
    SI je ne suis pas assez clair, je peux éventuellement te contacter oralement si tu me laisses tes coordonnées ou tu peux m'appeler au 04 72 04 705 4 aux heures de bureau
    Merci pour ton aide

  • How to convert Java Objects into xml?

    Hello Java Gurus
    how to convert Java Objects into xml? i heard xstream can be use for that but i am looking something which is good in performance.
    really need your help guys.
    thanks in advance.

    There are apparently a variety of Java/XML bindings. Try Google.
    And don't be so demanding.

  • Adobe XI Pro convert PDF to an editable EXCEL spreadsheet.  It converted to an unusable table in excel?

    I have viewed prior posts about converting a PDF to an Editable EXCEL file - I followed those
    instructions but when it converted put it in an unusable table in EXCEL.  Help Please!
    I contacted Adobe - this is a scanned document & they say they don't have a work around.

    Hey holidayw83568561,
    Could you please run OCR first before converting the PDF to Excel format.
    Also, let me know how does your Excel table appear and what exactly do you mean by saying 'unusable' table.
    If possible, please share the screenshot of the same so that I can analyze the issue.
    What exact dot version of Acrobat XI are you using?
    Hope to hear from you.
    Regards,
    Anubha

  • XML Report Excel Output Numeric & Character value left aligned

    Hi,
    I want the XML Report Excel ouput both numberic and character values to be left aligned in the report ouput. Currently my report excel ouput prints the number value right aligned and character value left aligned.
    I have tried to concat a space to the value to make that as a character value, but this gives a extra space in the report output, which shld not happen..
    Please could anyone help me with a solution.
    Thanks

    Hi Uday,
    You are making number as a string, by adding a character :) , so it will be displayed as string with space and not as number.

  • How can I convert a dBase IV file to Excel on my MAC computer??

    How can I convert a dBase IV file to Excel on my MAC computer??
    I downloaded the DoxBox program which enables me to use DOS programs such as dBase in my new MAC computer and it does work nicely!!

    This is what Excel now imports:

  • How to I convert data from oracle database into excel sheet

    how to I convert data from oracle database into excel sheet.
    I need to import columns and there datas from oracle database to microsoft excel sheet.
    Please let me know the different ways for doing this.
    Thanks.

    asktom.oracle.com has an excellent article on writing a PL/SQL procedure that dumps data to an Excel spreadsheet-- search for 'Excel' and it'll come up.
    You can also use your favorite connection protocol (ODBC, OLE DB, etc) to connect from Excel to Oracle and pull the data out that way.
    Justin

Maybe you are looking for

  • Intel Mac mini and widescreen TV output (analog)

    I just replaced my 1.25 GHz mini with a dual-core Intel one, and are really disappointed that the wide-screen resolution options are nowhere to be found. I'm using the Apple DVI-to-Video adapter with an S-Video cable. On the G4 Mac mini, I would get

  • HT204150 Is there a way to delete an email address from an iPad's memory?

    I once emailed my boss from my personal .mac email account so that is in his iPad memory.  Yesterday he emailed me with a work related request and the email defaulted to my .mac account rather than my work email address.  I don't often check my perso

  • Can I activate Adobe Photoshop Elements without Internet?

    I  bought three versions of Adobe Photoshop Elements for my high school class. We don't have internet where our production studio is. Can I activate without the Internet, and if so, how?

  • Price in PO / Invoice.

    Hi all, I am trying to input my Material price in PO as U$12.5434. I encounter the below error:(in MIRO also). “Input should be in the format ___.___.__~,__”. Price is rounding with 2 decimals Eg- U$12.54 or 12.50. I would like to know: A) Is it SAP

  • Dashboard gurus

    Guys, I have never before created a dashboard but have used WAD and very little VC. I will be using WAD or VC to setup dashboards in BI 7.0. Can a speed-o-meter or other graphs in dashboards can be double-clicked to drill down further. Please reply i