10-31-2018 02:42 PM
https://www.youtube.com/watch?v=L-Qd3X5d9G8&t=154s
This video is similar to what I would like to create.
I will simulate this with a push button to say that the student is present in class. I would like it to show the time and date that they attended and be able to see how many days was missed.
10-31-2018 02:46 PM
10-31-2018 03:08 PM
I do not know how to make it count an absence every time the button is NOT pushed, or how to make it show the time and date whenever the button IS pushed.
10-31-2018 03:12 PM - edited 10-31-2018 03:13 PM
Hi bjb,
every time you push that button you store a timestamp into a database.
Now you only need to check if there is a timestamp for each school day (when there is none, then the student missed).
Again: Do you have specific problems using LabVIEW?
Right now we are discussing problems with designing your algorithm - which is completely independent from the used programming environment! Use a pen and a sheet of paper to draw a flow chart! (Other forum participants will explain you to first define the "what do you want to achieve" before you go into the details of "how do you achieve your goals"!)
10-31-2018 04:47 PM
Yes that's what I need! I'm just not too sure how to implement that into the VI because we didn't learn that in our class.
10-31-2018 04:53 PM - edited 10-31-2018 04:54 PM
We don't do people's homework for them here.
Do this:
1. Write whatever code you DO know how to create in LabVIEW.
2. Write step by step instructions in plain English or pseudocode detailing how you think you should solve the problem in code you don't know how to create in LabVIEW
3. Make an honest ATTEMPT at implementing those instructions in LabVIEW
4. If you fail at your attempt (likely...), post your broken code (and the step by step instructions in plain English or pseudocode) and ask for help with the parts that you can't figure out.
10-31-2018 05:30 PM
1. I have 5 students that need their attendance monitored.
2.When they press their button, it will show the day they are present, then if they do not press the button on that day, it will add the total missed days.
I am having trouble with it showing the date that they press the button and having it add the missed days.
I attached what I have so far.
10-31-2018 05:52 PM
Your problem is you are taking a default value timestamp and formatting it into a string. Instead, you need to to use "Get Date/Time In Seconds" to get the current date, and then you can format it however you want.
To add the missed days, you need to decide on a format for storing the days the students have pressed their buttons. Since I assume this will last over many days/weeks, it will probably not work to store this in memory. So do you want to write them to a file? Are you going to set up a database to store them in? Once you have that figured out, then you can figure out how to get the days missed from your data stored (because it will depend on how it's stored).
Sidenote: Your missing days probably shouldn't be stored as floating points, but rather as integers (unless you are handling a way students can miss only part of a day?)
Also, how do you plan on having students scan their "Cajun Card"? Is this hardware you need to control from LabVIEW as well?
10-31-2018 07:55 PM
This is where I am at currently in my VI. This is a beginner class for me so I do not know how to do some of the things that you were talking about.
11-15-2018 04:40 PM
In this VI, the student will push their button time they enter the class for attendance.
It will display which days they push their button and which days they do not.
If the amount of missed days is Below 2 it will say "Good Attendance",
If the amount of missed days is 3-4 it will say "Warning"
5 or above it will say "Poor Attendance."
I am stuck on how to write the data to a file and then reading and displaying this data on labview. I included my VI of where I am at so far.