09-27-2023 01:31 PM
Hi all,
how can I access and Modify Part_TXT field Value in a test Program?
I follow this instruction but Part Text field on the stdf did not change to the set value.
Please advice,
Thanks
09-28-2023 10:16 AM
This is part of TSM stdf. Should be easier to create PART_TXT column values
09-28-2023 10:20 AM
Can you share how you exactly implemented this?
09-28-2023 10:56 AM
09-28-2023 10:58 AM
09-28-2023 11:01 AM
this is an example ... create the
set PartText to a value
but does not show up in the stdf file under PART_TXT, which seems to contradict the online documentation
09-28-2023 11:43 AM
Could you share more of the context of where you are calling these statements? From what you described, I think you are creating a variable of type NI_SemiconductorModule_UUTAdditionalData, and setting the value within there. Instead, you should access the existing UUT.AdditionalData container and change the PartText field within it.
I am not sure where you want to set the value from, but that will change how you need to refer to it. For example, in the PreMainSequence or PreBatch callbacks, you'd be able to access the UUT container as a parameter, but in MainSequence, you will need to use RunState.Root.Locals.UUT.
Here's a statement that should set the part text field within MainSequence:
RunState.Root.Locals.UUT.AdditionalData.NI.SemiconductorModule.PartText = "My Part Text"
I hope this helps, and if that doesn't resolve the issue, please show us the full context of where you are calling this within the test program and we'll be happy to take a look!
09-28-2023 01:04 PM
RunState.Root.Locals.UUT.AdditionalData.NI.SemiconductorModule.PartText
Where is that in the main-sequence ? I can't access it
09-28-2023 01:19 PM
Hey Edward,
That expressions is referencing the UUT container in the process model (That's what RunState.Root is referencing). Because it's not directly in your sequence file, the expression will not evaluate correctly at edit time. However, you can still set the property using an expression like the one I showed and it will correctly set the value at runtime.
09-28-2023 03:37 PM
Hi Daniel,
Thanks for your help. So in this very simple program, running one site, should I expect the PART_TXT stdf column to be populated with Massachusetts?
Thanks,
Ed