06-20-2013 09:35 AM
I've read everything I think is available on creating custom error codes ( xxxx-errors.txt) I can't find anything that tells how to "access" them.
In other words, I have the error text file created with say -8010 is "Turn power supply on".
Now I pass -8010 to the error cluster in a stacked seq but it doesn't popup and tell me "Turn power supply on".
What do I have to do to get the error cluster to tell the user what the error is when I pass it a number thats defined in the error text file?
Thanks..
06-20-2013 09:39 AM
use an error ring (LabVIEW 2012 and later)
Use the general error handeler in previous versions
06-20-2013 09:41 AM
Are you using the General Error Handler? That VI has a lookup routine that will search in those files. You could just be dropping the error somewhere along your way. Can you post your code?
06-20-2013 10:05 AM
Thanks...I wasn't using that those. Just the error cluster.
06-24-2013 11:41 AM
Now I'm trying to use the simple and/or the general error in a sequence structure. In one seq if I fail the test (TEST1) an error is displayed based on my xxx-error.txt file. In another, same thing. If the test fails (TEST2) I display an error based on the text file. My problem is if the 1st test fails the next failure doesn't popup up and tell the operator. The error handler vi, by design , just passes it thru .By accident I found if I don't wire the error clusters from one error handler to the next it displays both errors. If there are other things going on in the seq between test 1 and test2 should I be concerned that I didn't connect one error cluster to another?? Could I miss an error and not know it? If it matters there is also a test 3 that checks for a failure which is after test 2 in the same seq.
06-25-2013 03:39 PM
Could you post a screenshot of the code you’re referring to? It could help to clarify your question.
06-26-2013 10:07 AM
Unfortunately I can't.. I'm just going to leave the error cluster unwired from one simple error handler to another that are in my sequences..If you're still interested I can create a bare bones sequence w the idea in mind of what I'm trying to do..
09-17-2013 11:44 AM
_TIM,
I'm using the simple error handler in LV2012. In state machine 1 I measure the value of a port on a DAQ Card. If its say HIGH ( and I want low) I fail using a case statement. I have the error.txt file w all my error codes defined. So if the test fails it popus up the error and a description. No problem. The problem is if I go onto another statemachine 2 and do another measurement and it fails nothing happens. Its as thought the error in SM1 has prevented the code that does the next test from executing. If I allow SM1 to pass and SM2 to fail, SM2 popsup w the correct error code. Now nothing after SM2 "runs". If I clear the errors it works. Why does an error prevent the following from executing?
Thxs
09-18-2013 11:09 AM