03-13-2016 01:30 PM
Hello there,
I am really new to LabView and I have little programming experience at all. I am working through the lessons provided by NI (thank you NI).
I did the exercise listed in the subject... build a simple calculator that can add, subtract, multiply, devide, raise to a power, and take a root. I got it on my own, then checked the answer to see how the author did hers.
However, the solution is just an image of the block diagram with no explainations of what she/he is doing. Since I am new, I don't recognize every symbol.
Can someone please explain this thing to me?
Attached is my calculator and the author's.
Thank you in advance.
03-13-2016 01:41 PM
The only real difference I see is that the author used an Enum instead of a string for the Operator. And Enum is an integer that represents an item from a list.
Just as an aside, you really should have some kind of wait in there. As it is written now, you are using 100% of a CPU core. Something like a 100ms wait would be fine here.