Host Engineering Forum

General Category => General Discussion => Topic started by: ryanastiefes on January 06, 2021, 04:18:10 PM

Title: $LastError timestamp?
Post by: ryanastiefes on January 06, 2021, 04:18:10 PM
I'm trying to troubleshoot an issue which happens every once in a great while, in doing so I have found a piece to the puzzle in the System_Information/System_Status.Last_Error(s). Going further I can find the $LastErrorAddrx but cannot find the timestamp for it. Is the timestamp for $LastErrorx available or is it a wanted added feature?
Title: Re: $LastError timestamp?
Post by: BobO on January 06, 2021, 04:37:20 PM
I'm trying to troubleshoot an issue which happens every once in a great while, in doing so I have found a piece to the puzzle in the System_Information/System_Status.Last_Error(s). Going further I can find the $LastErrorAddrx but cannot find the timestamp for it. Is the timestamp for $LastErrorx available or is it a wanted added feature?

System errors are generally being set as the error result of an instruction. If you know what the instruction is, just add logic to capture the rising edge of the error bit and the you can count, timestamp, send yourself a message, or whatever.
Title: Re: $LastError timestamp?
Post by: ryanastiefes on January 06, 2021, 04:55:38 PM
Thanks for the reply. I agree with that, but what about the problems you did not account for, such as the one I had, why go through with logging the error and the instruction but not the time?
Title: Re: $LastError timestamp?
Post by: BobO on January 06, 2021, 05:28:48 PM
Thanks for the reply. I agree with that, but what about the problems you did not account for, such as the one I had, why go through with logging the error and the instruction but not the time?

It really isn't a log, just the last error returned from an instruction. It honestly never occurred to me to treat it as such. The system and user logs do have time and date stamp. It wouldn't be hard to add and I'm happy to do so, but if it is important to the operation of the system, the user program should already be dealing with it directly.

Title: Re: $LastError timestamp?
Post by: ryanastiefes on January 06, 2021, 05:56:04 PM
For sure, thanks for replying. Keep up the good work!