updates
git-svn-id: file:///srv/dev-disk-by-uuid-17e88007-4d0c-45e0-8757-cacfcc458630/repositories/svn/Diplomarbeit@138 9fe90eed-be63-e94b-8204-d34ff4c2ff93
This commit is contained in:
@@ -40,6 +40,18 @@ namespace QUA_2475_designtest
|
||||
{
|
||||
public partial class mainWindow
|
||||
{
|
||||
private void remoteRTCset()
|
||||
{
|
||||
string sendString;
|
||||
|
||||
sendString = String.Format("setrtc 2 {0} {1}\r", DateTime.Now.ToString("MMddHHmm"), DateTime.Now.ToString("yyyy"));
|
||||
com1.Write(sendString);
|
||||
}
|
||||
|
||||
private void calibrateAnalogue()
|
||||
{
|
||||
com1.Write("cslave 4\r");
|
||||
}
|
||||
|
||||
|
||||
private void T_MasterInput_TextChanged(object sender, EventArgs e)
|
||||
@@ -81,25 +93,38 @@ namespace QUA_2475_designtest
|
||||
else
|
||||
{
|
||||
/* Calling Function is in same Thread */
|
||||
try
|
||||
{
|
||||
/* Search for Text fragments in Input String */
|
||||
if (text.LastIndexOf("PASSED") != -1)
|
||||
{
|
||||
/* "PASSED" indecates that Device successfully
|
||||
* finished a Test Script or Routine
|
||||
*/
|
||||
activeTest = false;
|
||||
TestResult[actualTest] = true;
|
||||
TestIsPassed(actualTest);
|
||||
}
|
||||
if (text.LastIndexOf("FAILED") != -1)
|
||||
{
|
||||
/* "FAILED" indecates that Device finished
|
||||
* a Test Script or Routine with Errors
|
||||
*/
|
||||
activeTest = false;
|
||||
TestResult[actualTest] = false;
|
||||
TestIsFailed(actualTest);
|
||||
}
|
||||
if (text.LastIndexOf("CALIBRATION PART FINISHED") != -1)
|
||||
{
|
||||
activeTest = false;
|
||||
TestResult[actualTest] = true;
|
||||
CalibrationFinished();
|
||||
}
|
||||
|
||||
/* Search for Text fragments in Input String */
|
||||
if (text.LastIndexOf("test: PASSED") != -1)
|
||||
{
|
||||
/* "test: PASSED" indecates that Device successfully
|
||||
* finished a Test Script or Routine
|
||||
*/
|
||||
activeTest = false;
|
||||
TestResult[actualTest] = true;
|
||||
TestIsPassed(actualTest);
|
||||
}
|
||||
if (text.LastIndexOf("test: FAILED") != -1)
|
||||
catch
|
||||
{
|
||||
/* "test: FAILED" indecates that Device finished
|
||||
* a Test Script or Routine with Errors
|
||||
*/
|
||||
activeTest = false;
|
||||
TestResult[actualTest] = false;
|
||||
TestIsFailed(actualTest);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -160,9 +185,9 @@ namespace QUA_2475_designtest
|
||||
* corresponding Test and send the String afterwards
|
||||
* to CehckForKeyword to find specific Keyword
|
||||
*/
|
||||
CheckForSlaveKeyword(new string(buffer));
|
||||
//TestMessage[actualTest] += new string(buffer);
|
||||
//CheckForSlaveKeyword(TestMessage[actualTest]);
|
||||
// CheckForSlaveKeyword(new string(buffer));
|
||||
TestMessage[actualTest] += new string(buffer);
|
||||
CheckForSlaveKeyword(TestMessage[actualTest]);
|
||||
}
|
||||
nrOfBytes = com1.BytesToRead; /* Actualise Inputlength*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user