LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a boolean to log time?

Solved!
Go to solution

Hi all,

 

In my application, I want to use a boolean to log a time on continuous bases. When boolean gets 1, it logs system time. When boolean gets 0, it logs system time...& the cycle goes on.. We can use push button for changing boolean value...

 

Please guide me,,

 

Thank you,

Vaibhav Gandhi
,
B.E. Instrumentation & Control,
INDIA
0 Kudos
Message 1 of 4
(2,810 Views)

Use the event structure to implement the logic.

Trigger the event for value change property of the boolean and have a text file to write the system time. There are vi's which readily takes the system time and gives it to you.

 

Guru

Regards
Guru (CLA)
0 Kudos
Message 2 of 4
(2,796 Views)
Solution
Accepted by topic author Vaibhav G

Hi vaibhav,

 I created a switch control,whenver its state is changed..that particular time is logged...Check the attachment..

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


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

Hi shrikrishna,

 

Thank you so much its really working...I want date also to log with time...I will make suitable correction...

Vaibhav Gandhi
,
B.E. Instrumentation & Control,
INDIA
0 Kudos
Message 4 of 4
(2,737 Views)