07-11-2007 02:27 PM
07-11-2007
02:38 PM
- last edited on
11-02-2025
01:41 PM
by
Content Cleaner
Here is a link to LabView that discusses what codes you can use.
https://www.ni.com/docs/en-US/bundle/labview/page/defining-custom-error-codes.html
07-11-2007 03:19 PM
Hello,
I went to the website above and found 2 "user defined" error codes, I have elected to use error code 5000. So, when I insert the error with "Bundle By Name" I get a dialog box that comes up. So will I always get a dialog box that comes up when I insert a error? Is there such a thing as a error without the dialog box?
Regards,
Kaspar
07-11-2007 03:40 PM
Kasper,
What version of LV are you using? If you have 8.2.1 you can also create custom error codes in text files. Tools>>Advanced>> Edit error codes. You can use any code between 5000 and 9999 as well as between -8999 and -8000 inclusive. If you would post a pic of the block diagram or a small snippet of code we could probably help you better.
07-11-2007 04:45 PM
After rereading your last post I think I know what you are getting at. Here is how I create a custom error cluster.
1.On your front panel lay down a "error in" control cluster found in 8.2.1 at Array Matrix and Cluster.
2.Switch to your block diagram and right click this control and change it to a constant.
3.Wire this constant into the top of a bundle by name function. Expand the bundle by name to show the 3 elements. For each element create a constant and enter your information. You can feed the output of this function to any error input of the following vi's or create an indicator and hook it to your front panel connector pane.
Hope this helps![]()