Some courses and learning paths on NI Learning Center may not appear on learner dashboards. Our team is actively investigating.

If you encounter access issues, please contact services@ni.com and include the learner’s name, email, service ID or EA number, and the list of required courses.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TimeStamp when boolean light turns true

Solved!
Go to solution

Hello,

 

I wanted to have a timestamp to indicate the date and time whenever my boolean time turns true... I am having a hard time wrapping my head around implementing a time string whenever my boolean light turns on. Any tips to implement this?

 

Thank you!

0 Kudos
Message 1 of 6
(2,205 Views)
Solution
Accepted by topic author kepham

What is the purpose of your shift register?  All it does is delay the boolean light until the next iteration.

 

When you want something to happen when a condition is TRUE, put it in the True case of a case structure.

 

I would recommend you learn more about LabVIEW from here. How to Learn LV

Message 2 of 6
(2,171 Views)

Hi kepham,

 


@kepham wrote:

whenever my boolean time turns true...

Any tips to implement this?


When you want to detect changes of boolean states then you should use the Pt-By-Pt-BooleanCrossing function…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 6
(2,147 Views)

Hi,

 

Thank you!

 

I corrected the vi with a case structure, and the light turns on when it hit the true condition, thank you, however my true intention is to display a time string that shows the date and time the light turns on.

 

Thank you

0 Kudos
Message 4 of 6
(2,106 Views)

Once again, I overlooked the solution, I added the get time/date string inside the case structure. Thank you so much to you both.

0 Kudos
Message 5 of 6
(2,104 Views)

It isn't proper to mark your own thank you message as the solution to your problem.  You didn't solve your own problem.  You should mark the one or more messages that provided the solution to you.

0 Kudos
Message 6 of 6
(2,071 Views)