NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

STDF PRR Field

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.

EdwardQXL_0-1695839350610.png

Please advice,

Thanks

 

0 Kudos
Message 1 of 18
(1,937 Views)

This is part of TSM stdf.  Should be easier to create  PART_TXT column values

 

0 Kudos
Message 2 of 18
(1,906 Views)

Can you share how you exactly implemented this?

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 18
(1,902 Views)

EdwardQXL_0-1695916590831.png

 

0 Kudos
Message 4 of 18
(1,898 Views)

EdwardQXL_0-1695916700303.png

 

0 Kudos
Message 5 of 18
(1,896 Views)

this is an example ... create the 

EdwardQXL_0-1695916791723.png

set PartText to a value

but does not show up in the stdf file under PART_TXT, which seems to contradict the online documentation

 

0 Kudos
Message 6 of 18
(1,894 Views)

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!

0 Kudos
Message 7 of 18
(1,874 Views)
RunState.Root.Locals.UUT.AdditionalData.NI.SemiconductorModule.PartText

Where is that in the main-sequence ? I can't access it 

EdwardQXL_0-1695924268130.png

0 Kudos
Message 8 of 18
(1,856 Views)

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.

0 Kudos
Message 9 of 18
(1,850 Views)

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

 

 

 

0 Kudos
Message 10 of 18
(1,834 Views)