LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

temps de changement

Solved!
Go to solution

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 🙂 

0 Kudos
Message 1 of 18
(3,865 Views)
0 Kudos
Message 2 of 18
(3,848 Views)

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

 

0 Kudos
Message 3 of 18
(3,834 Views)

Sorry I dont know your Language.. Check this

 

 

Munna
0 Kudos
Message 4 of 18
(3,823 Views)

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 

0 Kudos
Message 5 of 18
(3,793 Views)
Solution
Accepted by topic author malmou

If your typing same string again then it wont add it to your array. If you dont want then remove case selector.

 

IMG.png

 

 

Munna
0 Kudos
Message 6 of 18
(3,786 Views)

thank you munna!! 

can i replace the "string" by an indicator coming from a control table! as showen in my vi???

🙂

0 Kudos
Message 7 of 18
(3,762 Views)

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.

 

Test123.png

 

 

Munna
0 Kudos
Message 8 of 18
(3,740 Views)

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 : )

 

 

0 Kudos
Message 9 of 18
(3,721 Views)

Check your Data Flow (If its not working as you expected).

 

Img3.png

Munna
0 Kudos
Message 10 of 18
(3,712 Views)