LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Toggle button and safe the time

Hello Everyone!

 

I wanted to show a problem I have. I'm trying to make an algorithm in LabView 8.0 that every time I triggered a toggle button it is saved in a string the time (hour, minute, second) in which the trigger was made, and that if it is operated several times, in the same string write one after another to finally have a string with all the times that has been triggered the button. I hope I’ve explained myself correctly… If anyone could send me a VI I will thank him a lot because it’s very important for my project!!!  Smiley Wink

 

Thanks a lot for your time,

 

 

G.

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

I would suggest using an event structure. Just use the concantanate string function with a shift register in a value change event. The way without an event structure is the Boolean connected to a case statement with the same concantanate string/shift register as in the event structure.

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

I’m sorry, but this does not work, because when I have the boolean set to "true", althoug it lasts a very short time, It adds many variables, so I have more “times” to those who truly are ... if you could send me some VI with your idea, it would be great. Thank you very much.

 

G.

0 Kudos
Message 3 of 4
(2,838 Views)

You just need to set the correct mechanical action of the Boolean. Right click on the control and change it to "Latch When Released'.

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