07-13-2009 04:23 PM
Solved! Go to Solution.
07-14-2009 06:35 AM
Hi Rick,
I have opened your file on my TS4.0 maschine and executed it
it works like suspected.
I assume your NI-StepType has been modified or you are using it from user folder. Try to run it on a "clean" maschine.
and it will work.
Maybe a reinstall of Teststand helps
Juergen
07-14-2009 08:25 AM
I also tested out your code on TestStand 3.5 and found it to function properly. Please take Juergen's advice and try running this on a clean machine.
Regards,
Steven Zittrower
Applications Engineer
National Instruments
07-14-2009 08:35 AM
After a little more investigation and some experimenting, I have been able to create a situation that produces the peculiar results shown in the test report. The attached 4-line test sequence will produce the results seen in the report. The 1st and 3rd lines in this sequence were lifted directly from the original failed test. The 2nd line was added by me to simulate specific data returned from the measurement instrument. The 4th line is a modified version of the evaluation step that would have shown the test data being evaluated more accurately.
.
As it turns out, if the measurement value is an exact multiple of 232 the test sequence will evaluate the data comparison correctly (Pass / Fail) but the test report will display 0. This is because the test step that displays the data in the report formats the data as an unsigned integer. In TestStand™, an unsigned integer can only hold a value of (232 – 1) (0xFFFF FFFF). The upper digits would not show up in the test report so the displayed value would be 0. Note that any rollover digits above 232 would get displayed correctly so the data value would have to be an exact multiple of 232 to have test report display it as zero. (i.e. If the data value is 232 + 1, the test report would still not display the upper digits but would display the 1 value in the report.).By modifying the evaluation step to format the displayed values using the TestStand™ ‘default’ display format, the test report would have shown the full data value including any digits above 232. This is demonstrated in the 4th line of the sequence file.
.
Thank you to everyone who responded to this post with helpful suggestions.