# LabVIEW

cancel
Showing results for
Did you mean:

## Re: Long term countdown timer

@ BowenM

Sir i wanna ask why did u minus the current time with the check out time you added yourself.

I will be grateful to know more about what u show me, i will make sure i can implement it in my

own VI

Message 21 of 33
(355 Views)

## Re: Long term countdown timer

Zahkay-

You have two variables 'check out time' and 'current time'- both in seconds. Tell me, how would you calculate the time the item has been checked out in seconds? Not in LabVIEW, just in words?

Message 22 of 33
(346 Views)

## Re: Long term countdown timer

Because current time-check out time>7 is the condition. Basic arithmetic and logic.

And please note that you are neither using a database or excel. You have a text file and using the correct terms is important. An actual database would allow you to make a simple query.
Message 23 of 33
(344 Views)
Highlighted

## Re: Long term countdown timer

The current time is the time of the computer which i put in my VI.

for the check out i would have take the total second of all the 7 days

sir

is it okie

Message 24 of 33
(340 Views)

## Re: Long term countdown timer

It's okay as long as you do the math and comparison correctly.
Message 25 of 33
(337 Views)

## Re: Long term countdown timer

ohh yeah. u r right . simple logic.

i am sorry for asking this kind of ques. Actually i was trying lots n lots that at the end i confuse myself

but i wanted to ask , but in the VI, the check out time is constant.

i have to manually insert for all for the constant check out time.

Message 26 of 33
(333 Views)

## Re: Long term countdown timer

actually sorry for this term database

to make it more clearer,

i am trying to monitor the laboratory equipment in and out by student.

actually when i am putting the output in the concatenate string,

there is an error.

Message 27 of 33
(331 Views)

## Re: Long term countdown timer

And you've been told the cause and the fix for the error. What didn't you understand?
Message 28 of 33
(319 Views)

## Re: Long term countdown timer

Yeah for the error, i can solve it.

But in the vi, the check out date was constant which is assigned by the user.

This is my issue.

the check out data , i dont know when it is.( i donr want it to be constant)

i hope , i am clear now

Message 29 of 33
(292 Views)

## Re: Long term countdown timer

When people give you an example of code that is a constant, it is to show you what the calculations would be.  Obviously, in a real app, it wouldn't be a constant.  It is up to you as the programmer to replace it with whatever input works in your application.  You need to start thinking for yourself at some point of time since it is YOUR project.

Message 30 of 33
(283 Views)