10-03-2014 03:35 AM
Bonjour tout le monde
je suis entrain de faire un programme labview qui enregisrte des chagement d'une variable sring en mémorisant sa valeur ancienne! et je voulais enregistrer aussi le temps passé entre ces deux changements!
le tavbleau de valeur s'affiche normalement mais j'arrive pas à determiner le temps entre ces deux évenement!
ensuite je voulais un bouton clear RAZ pour vider le tableau!
voici mon programme ci-joint
merci pour votre aide 🙂
Solved! Go to Solution.
10-03-2014 04:20 AM
Check this
10-03-2014 05:20 AM - edited 10-03-2014 05:35 AM
merci Munna233 🙂
voici mon code amélioré!
Apres chaque changement, il enregistre le temps! mais lorsque la variable reprend une valeur deja existé dans le tableau, il ne l'enregistre pas!
exemple: marche 2000
arret 1000
marche ---> ici il n'enregitre rien
10-03-2014 09:17 AM
Sorry I dont know your Language.. Check this
10-06-2014 03:35 AM - edited 10-06-2014 03:38 AM
thank you munna! i cheked your reply! and i had the same probleme!
in fact! i can't repeat the same variable twice! for exemple 1 ==> 123
2==>1254
1==> nothing is written here
thank you again
10-06-2014 03:44 AM
If your typing same string again then it wont add it to your array. If you dont want then remove case selector.
10-06-2014 10:53 AM - edited 10-06-2014 10:55 AM
thank you munna!!
can i replace the "string" by an indicator coming from a control table! as showen in my vi???
🙂
10-06-2014 09:46 PM
No. Event Strcutre will work based on user Events.
http://zone.ni.com/reference/en-XX/help/371361L-01/glang/event_structure/
By Indicator how you will generate event? Indicator is to display on FP.
what you want to do exactly? Give us complete information so that anyone can give you better solution.
10-07-2014 03:23 AM
thank you very much Munna 🙂 🙂
I have just one last question, about doing it with 2D table,
ti tried it when the event source is table2 then subarray2! it didn't work!
I am grateful to you for your help : )
10-07-2014 03:57 AM
Check your Data Flow (If its not working as you expected).