LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to not allow default values to be submitted

Solved!
Go to solution
Solution
Accepted by paintman

Your typedef has inner typedefs that you did not attach. Your code does not link to the attached typedef.

 

Can you explain why Carrier# is DBL? An integer would probably be more reasonable.

 

Here's a quick rewrite to give you some ideas. (I don't have your subVIs).

 

altenbach_0-1681140359089.png

 

 

 

0 Kudos
Message 11 of 15
(551 Views)

Is it possible to prevent this from happening in the first place?  I think usually it is easier to not allow something to happen than to fix it when it does.  You know, make it impossible to enter letters instead of dealing with them when the user enters some.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 12 of 15
(544 Views)

@billko wrote:

I think usually it is easier to not allow something to happen than to fix it when it does.  You know, make it impossible to enter letters instead of dealing with them when the user enters some.


I think the current requirements are to check if the controls are at the defaults or if anything (anything!) has been entered in each.

 

It would be easy to add a subVI that validates the entries against known good values, but that's beyond the current scope of the question. Ultimately, it must be done, of course.

0 Kudos
Message 13 of 15
(539 Views)

Thank you! And like I said I'm pretty new to the software/programming, I didn't know my carrier number wasn't set as an integer (or what a DBL was). I went ahead and changed that! When you say I need to verify if the path is valid, what does that mean? 

 

Also, I didn't even think about just making the title a constant... I appreciate all the advice!

0 Kudos
Message 14 of 15
(519 Views)

Once a path is selected or formed you might want to verify that the resulting path is writeable and not malformed, especially if the user entered a path manually. Once you build an installer, the exe will be in a system folder and that might need to be unlocked to allow writing.

0 Kudos
Message 15 of 15
(508 Views)