LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter

Hi all,

 

Consider the possibility of using while condition.

How do i set counter to 1, read time and update database and also increase counter by 1.

Use the while condition to allow only update of database while counter =1

 

Thank you 🙂 

0 Kudos
Message 1 of 5
(2,491 Views)

You are going to have to explain a little more.  Where is this counter coming from?  Is it really a counter or just a flag?  Explain in more detail exactly what you are trying to accomplish.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,479 Views)

I'm actually doing a project on e-learning. So i'm trying to create a "Random Number" from the date/time the user have logged in. I want the "Result" in the front panel to be store in the database. But because the seconds from the time kept running, thus, the total result kept storing into the database, which I do not want that to happen. What exactly i want is just that particular date/time they logged in to be stored in the database. 🙂 Thank you:)

0 Kudos
Message 3 of 5
(2,476 Views)

I think, you are trying something different.

Still your requirement was not clear.

 

For my understanding.

You are trying to use 'While Loop' 'i' terminal/condition.

If so, the 'i' will increase its value by 1 for each iteration. And you can't change this.

 

But you can use another 'Shift Register - Numeric I32' for your 'i' terminal replacement. But based on your second post you need a Boolean Shift Register/Condition to 'Update Database?' (Yes or No).

 

Regards,

Yogesh Redemptor

Regards,
Yogesh Redemptor
0 Kudos
Message 4 of 5
(2,451 Views)

Sounds like you just need a flag that somebody just logged in.  Use a case structure with the flag.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(2,436 Views)