LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with time

Hi everyone,
 
i'm new at labview so hopefully there's someone out there to show me some solutions to my problem.
 
Attached is a problem which i just started. The purpose of the program is to enable the user to input the testing time *seconds* and the block diagram is suppose to increase the starting time from zero seconds onwards until it reaches more than the input value. I included a Get time/date in seconds in order to get the precise value for the counting but somehow it prompts me to indicate where i should save my data at instead of continuously running in the while loop.
 
Elapse time should show me how the time is being run *in action* when the vi is being executed but it doesn't work either.
 
What's wrong with my code and what can i do to resolve this?
 
Many thanks!
0 Kudos
Message 1 of 8
(3,132 Views)
Attached as below.
0 Kudos
Message 2 of 8
(3,120 Views)
Please post your code or at least a screenshot. This will save our precious time and is the best guarantee to receive a useful answer...
0 Kudos
Message 3 of 8
(3,120 Views)
Sorry for my previous posting. Your code arrived will I was typing my answer.

The loop executes only once because you have wired a TRUE constant to its conditional terminal set to Stop if True ! Set the constant to FALSE or change the behavior of the conditional terminal. Please read the context help of the loop.

I also strongly suggest to replace the constant by a boolean button. This will allow you to stop the loop.
0 Kudos
Message 4 of 8
(3,118 Views)
An example is better than 1000 words...

Don't forget to set the Testing Time to a value different to 0.

Message Edité par JB le 05-10-2007 12:18 PM

0 Kudos
Message 5 of 8
(3,117 Views)

Hi JB,

thanks for your revised vi. I was wondering if is critical to install a Wait(ms) inside the loop?

Thank you once again!

0 Kudos
Message 6 of 8
(3,098 Views)
Not critical (unless your development computer runs a nucelar power plant)
But not including any wait inside a while loop (even 0 ms) will call all the computation power of the CPU.

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 7 of 8
(3,087 Views)

Hi there,

now i would like to display the elapse time in terms of date and time in a text format. I experimented with Format Date/TIme String but in vain.

is it possible to do that since the diagram is running based on taking account of the real time offset with the user's input?

Thank you!

0 Kudos
Message 8 of 8
(3,084 Views)