LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

initialization

Solved!
Go to solution

salam
hello I'm looking how to make an init program or reset every midnight that is to say I take the measurement every day

example and I want that this time has 00:00:00,000 all indicators will initialize ...

   AND THANK YOU

0 Kudos
Message 1 of 8
(2,526 Views)
Solution
Accepted by topic author bilalus

Hi bilalus,

 

have you ever tried to search the function palette on your own or to read the (context) help?

 

check.png

(One of several possible ways...)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 8
(2,519 Views)

thank you GerdW for this solution, for me it is the first phase but how can I reset all the indicator for a new day

0 Kudos
Message 3 of 8
(2,490 Views)

I would look at the day component of the date cluster.  If the day is different then the previously stored day, then you know you have passed midnight.

0 Kudos
Message 4 of 8
(2,485 Views)

Hi bilalus,

 

"how can I reset all the indicator for a new day"

Indicators don't need to be resetted! All they do is show the data that is wired to them.

If you want to show new data for a new day you simply have to wire it...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 8
(2,455 Views)

thank you

 is there a way to clear waveform charts each day

 

 

0 Kudos
Message 6 of 8
(2,442 Views)

Create a property node for the chart called History Data and write an empty array to that property.

 

Or create an Invoke Node for the waveform chart that is Reinit to Default Data and execute that.

0 Kudos
Message 7 of 8
(2,439 Views)

thanks

0 Kudos
Message 8 of 8
(2,415 Views)