10-30-2013 01:15 PM
Hi guys i am new in labview I want to make a program in labview that will take three user inputs "Name", Marks Obtained" and "Total Marks" and calculate the percentage and grade of student. I have done this but my program will show every new value and discard the old ones. I want to save every user input and record and update the table. How i can do this suggest me eny idea. Thanks. Plz see attachment files for my VI.
Solved! Go to Solution.
10-30-2013 01:43 PM
All of the code needs to be inside the loop. Also the table data shoulc be passed from iteration to iteration via a shift register. The loop should have some delay - it does not need to spin millions of times per second. Better would be to use the Event structure so that the loop only iterates when an input changes.
For such simple math it probably makes more sense to use math primitives from the Numeric palette in place of the formula node.
Convert the numeric values to integers. The you only need one case structure with [x] wired to the selection terminal. It will have 5 cases.
You may also want to consider saving the results to a file.
Lynn
10-30-2013 01:54 PM - edited 10-30-2013 01:55 PM
johnsold wrote:Convert the numeric values to integers. The you only need one case structure with [x] wired to the selection terminal. It will have 5 cases.
Even easier, use an ordered array of grades and compute the needed index. No case structure needed at all.
The loop in the lower left makes no sense whatsoever.
10-31-2013 01:31 AM - edited 10-31-2013 01:34 AM
Thanks a lot JohnSold for your suggestion, well i will try my best to improve my program, if i faced any difficulty again, then i will tell you.
Regards
Akbar Hussain
10-31-2013 01:32 AM - edited 10-31-2013 01:34 AM
Thank you so much for your suggestion AltenBach.
11-11-2015 03:07 PM
can any body please send me complete working program.further i alos want to save it in a file please.