LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple numeric control to one time delay

i am using numeric control to control the delay time of my sensor input signal. with using the dbl, i able to change the duration in seconds. is that possible to modify so that the program can have three numeric control ( one for hour, one for minute, and one for second) and connected together to the delay time? help...
Attached Image
0 Kudos
Message 1 of 7
(3,315 Views)

Hi mic_k86,

it's of course possible. Calculate all into seconds and add them, connect the result to your delay time.

 

Instead of using an hour as delay you should use a loop with a smaller delay. It's easier to stop your program.

 

Mike

Message 2 of 7
(3,309 Views)

Alternatively, you can right click the control, select Display Format and change the display to be relative time. The value will still be in seconds, but the control will display it as relative time, which you can set to be HH:MM:SS.

 

As Mike mentioned, if you have a long wait, you're better off using a timeout mechanism (an event structure, a notifier, etc.), as it will allow you to break the wait.


___________________
Try to take over the world!
Message 3 of 7
(3,304 Views)

Alternatively, you can right click the control, select Display Format and change the display to be relative time. The value will still be in seconds, but the control will display it as relative time, which you can set to be HH:MM:SS.

 

tst: i have try as what you mention. the numeric control is change to HH:MM:SS, but the saving duration still cant get wat i want. for example, i set HH:MM:SS as 00:30:00, however it will not save in every 30minutes, but instead save every second. how to change it?

 

As Mike mentioned, if you have a long wait, you're better off using a timeout mechanism (an event structure, a notifier, etc.), as it will allow you to break the wait.

mike and tst, can explain details in this part and if possible provided some example for reference.

0 Kudos
Message 4 of 7
(3,288 Views)

 This is a cross-post, if you make one please mention it in the original posts.

However on LAVA I gave the following (IMHO) best solution:

 

The easiest method is to adjust the display format of the numeric to Relative time HH:MM:SS:

 

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 7
(3,284 Views)

TonP, instead of using three numeric control, i just want to used one numeric control. is it possible? how to do it?

0 Kudos
Message 6 of 7
(3,246 Views)
That is one numeric control.  It is just 3 different examples to prove that 10 seconds is 10 seconds.  1 minute is 60 seconds.  And 2 hours is 7200 seconds.
0 Kudos
Message 7 of 7
(3,243 Views)