Page 1 of 1

Lire un fichier Excel ou txt sur carte SD?

Posted: Tue Nov 05, 2019 4:24 pm
by tech
Bonjour,

Est-il possible de lire un fichier Excel ou txt à partir d’une carte SD?
Y a-t-il des exemples?

Merci

Christian

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Tue Nov 05, 2019 5:15 pm
by Benj
Bonjour Christian

Oui c'est certainement possible, il y a un exemple de fichier ici.
https://www.matrixtsl.com/wiki/index.ph ... _text_file


Hello Christian,

Yes this is certainly possible, there is an example file here.
https://www.matrixtsl.com/wiki/index.ph ... _text_file

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Wed Nov 06, 2019 3:26 pm
by tech
Bonjour Benj,

Comment je fais si je veux lire et afficher les information sur le fichier text?

Comme par exemple si je veux seulement lire le premier data 29 B9 ED 23 et ensuite le deuxième data 52 58 8b 45.

Merci

Christian
Data.txt
(23 Bytes) Downloaded 433 times

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Mon Nov 11, 2019 6:14 pm
by Benj
Salut christian

Avez-vous regardé l'exemple, cela devrait aider beaucoup et devrait presque faire tout ce dont vous avez besoin.
Essayez de poster où vous allez et nous pourrons vous aider et vous aider.


Hi Christian,

Have you looked at the example, It should help a lot and should almost do everything you need.
Have a go and post where you get to and we can chip in and help.

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Sun Nov 17, 2019 12:13 pm
by tech
Bonjour Benj,

Oui j'ai regardé l'exemple, mais je ne parviens pas à lire ligne par ligne exemple, je voudrais extraire seulement la valeur 3 de speed, la valeur 1500 du delay, la valeur 10 du offset et la valeur 041044905D du tag1.

J'ai essayé mais rien ne fonctionne, je pense qu'il me manque un peu d'informations.
SD_Read_Data.fcfx
(14.05 KiB) Downloaded 317 times
Config.txt
(47 Bytes) Downloaded 319 times
Merci de votre aide :D

Christian

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Wed Nov 20, 2019 1:33 pm
by Benj
Hi Christian,

Here's a starting point for you, the example now reads a complete line into a string.

You should be able to find the spaces between the name and the value and pull the two into seperate strings.
SD_Read_Data.fcfx
(13.52 KiB) Downloaded 337 times

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Sat Dec 28, 2019 7:53 pm
by Hokum52
Merci beaucoup pour les informations, je ne suis pas l'auteur originel du sujet, mais vos indications m'ont permis de lire des .xls via ma carte SD, chez moi, ça marche!

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Tue Jan 07, 2020 3:06 pm
by tech
Bonjour Hokum52,

Serait-il possible de m'envoyer en PM un exemple, car je ne parviens pas a lire mes fichier? :wink:

Merci de votre aide :)

Christian

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Wed Jan 06, 2021 2:49 pm
by tech
Bonjour Hokum52,

Je me demandais si il serait possible pour vous de me fournir un exemple de votre code?

Ca me permettrais de vois ou sont mes erreurs et ca m'aiderais a mieux comprendre le fonctionnement du component, car je ne parviens pas a lire un fichier text ou xls sur ma cart SD.

Votre aide serais grandement apprécier :)

Bien a vous

Christian

Re: Lire un fichier Excel ou txt sur carte SD?

Posted: Wed Jan 06, 2021 3:57 pm
by Benj
French

Salut Christian,

Voulez-vous publier votre projet et expliquer où vous rencontrez des problèmes et nous pouvons enquêter pour vous.



Hi Christian,

Do you want to post your project and explain where you're having problems and we can investigate for you.