LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remplissage excel incrémenté

Solved!
Go to solution

Bonjour,

Je cherche à exporter des données sous excel sous plusieurs utilisations.

Par exemple une personne A réalise au jour J une performance de 21. Le lendemain ( J+1), une personne B réalise une performance de 30.

J'aimerais que ces données soient sous un même fichier excel, malgré le fait que l'enregistrement n'ait pas été fait le même jour.

Cela donnerait sous excel un tableau avec une colonne personne, une colonne date et une colonne performance, avec en dessous les valeurs des personnes associées.

Merci d'avance,

Cordialement

Ggermm

0 Kudos
Message 1 of 4
(2,315 Views)

Si vous utilisez le "Write to Spreadsheet String", il y a un choix d'ajouter ou écrire un nouveau fichier. J'ai mis des boutons pour chaque cas.

Download All
0 Kudos
Message 2 of 4
(2,296 Views)
Solution
Accepted by topic author ggermm

The easiest way to do this will be using a tab- or comma-delimited text file, which you will be able to read in Excel. Then you need only open the file, set the file location to the end of the file, and write the new data. See the attached example code, which you can drag into a block diagram. Set the filename and other front panel controls, then run it. Change the name and score, and run it again. Then open the file, and see if it's what you expect. Here it writest the time instead of date so you can run it several times in the same day and see the difference.

open and append to file.png

Message 3 of 4
(2,295 Views)

Bonjour,

 

merci pour vos réponses si rapides!

 

Je n'ai pas trop compris vos exemple, avec nouveau fichier le chemin excel. Pouvez vous etre un peu plus précis s'il vous plait? je suis plutôt débutant en labview.

 

Je vais testé l'exemple avec l'image PNG.

 

Merci encore

0 Kudos
Message 4 of 4
(2,277 Views)