Append Statement |
Version 6 |
This statement allows to append a message to the log string that ATEasy generates. For example, Append statement from a test will print its message after test results instead of ahead of them.
Append "append_message"
This statement is new in ATEasy 6.0.
Most test engineers expect to see in a log test results and if there are messages relating to them they usually appear after the test results. This way the log may show a failure and then a message with more details, see examples below.
! ... in the test code
Dmm Measure (TestResult)
if (TestResult<Test.min)
Append "Result too low - check circuit X"
elseif (TestResult>Test.max)
Append "Result too high - check circuit Y"
endif
!A different example :
Pio Get Port Data DWord (aPort 0, dwData)
if ((dwData and 0x40) = 0x40)
Append "Bit 7 was set, indicating timeout"
endif
if ((dwData and 0x10) = 0x100)
Append "Bit 9 was set, indicating over voltage"
endif