Monitor power supply data for fault conditions
This commit is contained in:
@@ -55,8 +55,8 @@ namespace ProgramLib
|
||||
|
||||
private ILogger _logger;
|
||||
|
||||
private object _fatalErrorMsgFromThreadSyncObj = new object();
|
||||
private string _fatalErrorMsgFromThread;
|
||||
private object _fatalErrorMsgFromSupportThreadSyncObj = new object();
|
||||
private string _fatalErrorMsgFromSupportThread;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -249,7 +249,7 @@ namespace ProgramLib
|
||||
if (!_terminateTestInitiated)
|
||||
{
|
||||
// tells teststand there's a exception occurred and give it the error message
|
||||
_testStandSeqContext.SequenceErrorMessage = _fatalErrorMsgFromThread + " ";
|
||||
_testStandSeqContext.SequenceErrorMessage = _fatalErrorMsgFromSupportThread + " ";
|
||||
_testStandSeqContext.SequenceErrorOccurred = true;
|
||||
|
||||
// tells TestStand to go to clean up
|
||||
@@ -267,13 +267,13 @@ namespace ProgramLib
|
||||
/// </summary>
|
||||
/// <param name=""></param>
|
||||
/// <returns></returns>
|
||||
internal void SetFatalErrorMsgFromThread(string errorMsg)
|
||||
internal void SetFatalErrorMsgFromSupportThread(string errorMsg)
|
||||
{
|
||||
lock(_fatalErrorMsgFromThreadSyncObj)
|
||||
lock(_fatalErrorMsgFromSupportThreadSyncObj)
|
||||
{
|
||||
if (String.IsNullOrEmpty(_fatalErrorMsgFromThread))
|
||||
if (String.IsNullOrEmpty(_fatalErrorMsgFromSupportThread))
|
||||
{
|
||||
_fatalErrorMsgFromThread = errorMsg;
|
||||
_fatalErrorMsgFromSupportThread = errorMsg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user