NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
Hueter

Allow Error Case Structure to Handel Specific Error Numbers

Status: New
by Active Participant Hueter on ‎01-19-2010 07:27 PM

When you connect the error wire to a case structure selector, you get two cases for error and no error. I think you should be able to add in cases for specific error numbers so you can handle specific errors differently. You could do this currently, but you would have to unbundle the error and use the error code.

 

Numbered error case.png

Comments
by Proven Zealot on ‎01-20-2010 04:13 AM
but i dont see any great use for this. As you yourself have said this can be done by unbundling it. and as such you cant do much in the program for the error. A wiser thing would be to display the error message no matter what error occurs.
by Proven Zealot on ‎01-20-2010 04:18 AM

like this. Maybe we can suggest the dialog accepts the "source"directly instead of an unbundle

 

er.PNG

by Active Participant Hueter on ‎01-20-2010 07:23 AM

Muks

 

With your solution you would still need to create an nested case structure if you wanted to handle each error with custom code. 

by Knight of NI on ‎01-20-2010 10:44 AM

Sounds like a good idea. We should not be allowed to remove the plain error case, which would act as default for all errors that don't have a specific case defined.

 

However, I would suggest to enter the error number as integer, not as a string with quotes. It could even format it more descriptive, so if I enter 7, it would show as [Error 7] and also have a red frame. A case with multiple errors would show as [Error 7, 2000, 12345]

 

How about allowing a case for warnings (with e.g. an orange frame)?

by Active Participant Hueter on ‎01-20-2010 10:49 AM
I agree Altenbach, the general error case would be the default and the quotes were because I was too lazy to cut them out and i just forced the number in there for a screenshot.
by Active Participant elset191 on ‎01-20-2010 01:01 PM
This idea is in the same vein as this one, I think
by Member RandyP on ‎01-26-2010 12:54 PM
It seems to me that the two ideas should be merged in an elegant fashion, if possible. What about warnings?
by Member Dan_DeFriese on ‎04-28-2011 08:23 AM

I agree with altenbach, but I'd prefer a yellow frame for warnings :smileytongue:

Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
133
82
67
65
56
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page