12-08-2009 09:22 PM
Hello! I am a relatively new programmer, but I've learned LabView relatively quickly. I recently decided to start a new project that would challenge my programming skills, so I've decided to make some VIs that do things with data from all the different elements from the Periodic Table (such as formula mass, for a simple example). I decided to start with a VI that actually gives the other VIs the information they need. I've come up with quite a few different examples of information I thought useful, but I thought I'd see what you programmers out there would like on it, considering this can (and should) be used by you guys in your programs. I haven't completely finished it, but I've gotten the first 4 periods done. I'll post a copy of it as soon as I figure out how. Here's a picture of the program so far.
All feedback is nice. The True case is not filled out just yet, I'm waiting to finish the False case first (so I can copy and paste).
12-08-2009 09:23 PM
12-09-2009 03:25 AM
That VI actually looks pretty good for a beginner (with the cleanly laid out terminals being a big plus).
Comments:
12-09-2009 09:53 AM
12-09-2009 10:41 AM
smercurio_fc wrote:
I agree that it looks pretty good. One thing that you may want to consider is to have the data reside in a file. A lot of what you're doing is simply spitting out a different value depending on an atomic number. In some cases you're spitting out a different sized array. If I were doing this I'd probably store all the data in an XML file and then I would just need to parse the XML file to read the data for a specific atomic number. This would eliminate the need to have a case for each element. What are we up to now? 110 or something?
Olivia knows of about 109 but that gives me a chance to make one of my typical "hair-splitting" points.
We only need a U8 for the atomic number.
Ben
12-09-2009 12:00 PM
I agree with the comments so far, I would probably suggest a couple of things. First, this looks like (I hope) the business end of your application, not a user interface (ie. your user interface will call this VI to get the relavent data). As such, I would move towards having a cluster as the input and output types. Using a configuration file is also a good idea, when new elements are discovered, and sometimes later refuted, it would be nice if you did not have to edit your VI.
As a bonus exercise, you should also give the ground state term symbol. Super bonus points for implementing Hund's rules in a VI as opposed to simply wiring constants.
12-11-2009 04:03 PM
Thank you all for your feedback on my VI, I greatly appreciate it. I have a couple of specific thanks to give here:
tst--The array of clusters of info sounds like a great idea, actually. I could implement that quickly and easily. Thank you.
smercucio-- Because I am a beginner, I have no idea how to implement that XML idea of yours, but it sounds like a really interesting idea. I'll look into it and think about implementing it into my program. Thank you.
If anyone else has more feedback, I'm still open to ideas! I appreciate all help offered!
12-11-2009 04:08 PM - edited 12-11-2009 04:10 PM