Skip to content

Stdf file writing issue when value in record is null #31

@WeiqingChen

Description

@WeiqingChen

When I parsed my ate test stdf file and then wrote the new stdf file. The created stdf file content is not correct and the size of new stdf file is not equal to the original file. I found the cause is that some value in file is "00" and it is parsed in StdfRecord is null. But if we used the StdfRecord to write the new stdf file, the writer will ignore the null value and it will not produce "00" in new stdf file, it also length of the field is not correct.

Such as the following ATR content. In std file, the MOD_TIM in stdf file is "00 00 00 00", the CMD_LINE is "00". In the parsed record, they are both "null".
Atr_content

The following is ATR part comparison between original stdf file and new stdf file.
atr_compare

I have checked the LinqToStdf project code step by step, but have not find the cause in which part code. Could you help me to solved the issue? Thanks!

The stdf file and my console code is attached.
Program.zip

__20230922__FT_P2_2023SEP23092210.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions