LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Student Data Record

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(3,904 Views)
Solution
Accepted by topic author Rifian

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

0 Kudos
Message 2 of 6
(3,894 Views)

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.

0 Kudos
Message 3 of 6
(3,889 Views)

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

0 Kudos
Message 4 of 6
(3,848 Views)

Thank you so much for your suggestion AltenBach.

0 Kudos
Message 5 of 6
(3,847 Views)

can any body please send me complete working program.further i alos want to save it in a file please.

 

0 Kudos
Message 6 of 6
(3,681 Views)