10-26-2019 03:11 PM
I am looking for some LabVIEW help. I’m still learning. I’m looking to create a LabVIEW control based on the attached spreadsheet and would like some guidance on the easiest way to attack it.
Goals: take information from excel/Excel online into LabVIEW. allow the user (regardless of location) to select the employees name (via drop box/search) then select a function to edit via drop box (points, position, and active employee) once that’s selected, I would like to edit and update that value based on the below:
Drop down selection
(Points)
*text* (+1)
*text* (+2)
*text* (+5)
*text* (+10)
*text* (+12)
*text* (+20)
*text* (+X)
*text* (-X)
Drop down selection
(Position)
"first"
"second"
"third"
"fourth"
"fifth"
Active employee?
Yes or No
I’m not looking for someone to do it for me as I want to learn how to do it. some guidance, explanation or examples would be awesome! I understand it’s not lab views primary use. however, I would like to create something that can be used while I learn some of the various functions of the program!
10-27-2019 12:33 PM
This can be done using the Report Generation Toolkit (I've done it), but I'd say it is not a "beginner's Project". The RGT, as its name states, is a Report Generation Toolkit, meant for writing formatted Reports in Excel. There's a not-so-bad example/Demo of this here.
What you want to do, however, involves both reading an existing Excel Spreadsheet, parsing the Sheet to identify such things as Row and Column labels (so you can search), and manipulating the data. It also matters if you want to do this with the spreadsheet open (say, on another monitor) and to see the changes in Excel as you make them, or just make each change (to the data), and rewrite the Excel file when the program exits.
In my case, I generally start with an "empty" Excel Template, having the Column headers in place, and having otherwise empty rows. I generally write a "row at a time", but depending on the situation, might not write every column for every row (but I know, for each row, what data need to be filled in). Most of the time, I write successive rows, but there is additional code to allow me to "overwrite Run 34".
To get started, and to begin to learn how to do what I think you want to do, I'd recommend the "Read Everything, Parse Everything, Update Everything, then Rewrite Everything" method, with the Excel spreadsheet not visible. Here's what I mean:
Bob Schor
10-28-2019 06:17 AM
Bob,
Thank you very much for the advice! I will see what i can come up with!!