Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error codes defined in text file

I have created a new file for creating my user defined errors using tools>advanced>edit error codes and created a few new error definitons starting at 5000 thru 5003. I then save it and close the window, go back to my VI block diagram and while using the Error Cluster from Error.VI standard VI in LV 7.1, I inject a code 5000 into it and do not get my message to come out on the error out terminal.

What am I doing wrong here?
0 Kudos
Message 1 of 7
(3,529 Views)
You need to restart LabVIEW first as the help says. If you did this, did you create a file with the name prefix-errors.txt?
0 Kudos
Message 2 of 7
(3,526 Views)

can i edit this error text message to "Wrong input option", can i?

please...

Message Edited by marp84 on 08-05-2009 08:47 PM
Download All
0 Kudos
Message 3 of 7
(3,276 Views)

Sure but why don't you fix the program you wrote. The case statement is doing absolutely nothing. If 0 is selected, you still pass 0 to the simulator function. You can place the simulator  function inside the non-zero case or simply set the control so that 0 is not allowed.

 

Again, this is very basic stuff that you seem to have a hard time getting a grasp of.

 

And, please try to refrain from hijacking old and unrelated threads.

Message Edited by Dennis Knutson on 08-05-2009 08:57 PM
0 Kudos
Message 4 of 7
(3,272 Views)

nice thanks,but how i can change that error message cause i dont see the code of error message?

can you help me?

0 Kudos
Message 5 of 7
(3,267 Views)

First, you would need to find the actual error number. Then you would have to search through the error files, find the number, and replace the text. Look in \LabVIEW 8.x\resource\errors\English for the txt files that have the error codes and messages.

 

I would reallly, really prefer that you fix the program. What you are doing with the text is just a band-aid and since your program is so easy to fix, I don't understand why you are so reluctant to do so. DO THE RIGHT THING!

0 Kudos
Message 6 of 7
(3,253 Views)
okay i'll fix it.tanx for your help.
0 Kudos
Message 7 of 7
(3,242 Views)