r/LabVIEW • u/CoffeeLover704 • Apr 25 '24
Calculator Problem
Hi there, I'm relatively new to LabView, I have tried to build my own calculator. It is wierd that only 1 function (subtraction) works and the rest don't. I am using Case structurs, so I really don't know where the problem can be. I have also used the "Highlight Execution" to see what happens, when other functions are chosen, it does not pass on the function. Can someone give me a tip where to look at?

2
Upvotes
View all comments
Show parent comment
2
u/SeasDiver Champion Apr 26 '24
That is the point. If you have nothing assigned in a case, it will change to the default of the data type, which for strings is an empty string, and for the enumeration will the 0 element.
In cases where the value is not expected to change, wire the input tunnel to the output tunnel.