03-18-2009 05:50 PM
I have a GUI interface built right now and I have a question how would i make it to where everytime i enter and submit a new employee or food item how would i create a new set of string indecators
here is a senerio:
name: john doe hiering date: 12/12/09 and then I submit the employee it adds to the list of employee's but now i want to add another employee but it must creat a new set of string indecators in order to display this new employee.
here is the user interface I have for the application:
03-18-2009 05:57 PM
03-18-2009 06:18 PM
03-18-2009 06:26 PM
I also would need to add a scroll bar to the array because I will probably have many different people to add in this project as well as items
and my next question would be how would I increment the submissions so that is would not add the submissions in the same array index?
thank you,
03-19-2009 02:52 PM
Harold,
This is 3 hours of coding so enjoy it!! I got your functionality by interacting with a file. I write the new employee/product data to its own file and then populate a combo box with that value later to display it. Take a look at the block diagram (breathe deep and don't panic...it's not that complicated) and follow the directions I gave you. You need to make sure and change all file paths to your computer (you can change the name of the file if you want bc it will creat it for you if it doesn't exist)....there are 6 file path constants you need to change. I saved the VI for LabVIEW 8.6.1 and LabVIEW 8.0 and they are up version compatabile (8.0 can open in all LabVIEW 8.x versions). Let me know if you have any questions. Cheers!!
03-20-2009 10:36 AM
Harold,
Was the code helpful?
03-20-2009 10:54 AM
Hi G-Money,
I don't have 8.6.1 installed so I havent looked at the code, but I noticed it is physically much smaller than the 8.0, do you know why this is?
03-20-2009 11:40 AM
jmcbee,
That was my "host" development system that I created the code in and then I down converted it to LabVIEW 8.0. When you do this, it adds a little overhead then if you would have developed it in the other system but this is a rather large issue of that. The basic answer is no. I do not know why (there is phsycially no difference) in the code structure. I want to point to compiling.