07-13-2016 07:31 AM
Hello,
How to add Lot Id(which is inputted in the Configure Lot Setting) in the file naming of Lot Summary and STDF report generated by Semiconductor Test Module.
Currently the default naming is shown in the snippet below
Thanks,
Rovi
Solved! Go to Solution.
07-15-2016 05:12 PM
Hi Rovi,
Have you tried editing the ConfigureLotSettings callback or some of the steps listed in Cusomizing the Behavior for Obtaining Lot Settings?
Regards,
John Gentile
Applications Engineering
National Instruments
07-15-2016 07:17 PM
Hello John,
Thanks for your help.
When I try to edit the SemiconductorModuleCallbacks.seq>>GetreportFileName>>Compute File Name it works.
Below is the code I did to add values on the file naming.
Parameters.ReportFileName =
Str(Parameters.LotSettings.Standard.PartType)+"_"+
Locals.BaseFileName + "_" +
Str(Parameters.LotSettings.Standard.LotId)+"_"+
Str(Parameters.StationSettings.Standard.NodeName)+"_"+
Str(Parameters.StartDate.Year)+""+
Str(Parameters.StartDate.Month)+""+
Str(Parameters.StartDate.MonthDay)+"_"+
I still have a question regarding on the Str(Parameters.StartDate.Year)+""+ when I add year to the file name, it turns out that it add the whole 4 digit number of the year "2016". How can I manipulate this to just add the last two digit of the year, which is only the "16".
Thanks a lot,
Rovi
07-18-2016 03:19 AM
Hi Rovi,
You can use the Right() function to manipulate it to just add the last two characters:
Right(Str(Parameters.StartDate.Year), 2)
Regards,
Charlie
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
07-19-2016 03:21 AM
Hello Charlie,
Thanks for the info. It works!
I have another question regarding on the manipulation of string in teststand.
I just noticed that the "Str(Parameters.StartDate.Month)" is just giving me one digit for example.
when I append the Month onto the year it just give me this "167" what function can I use to force this parameters to give two digits?.
Example:
"YYMMDD.txt" = "160719.txt"
Also, where can I found the functions for teststand in manipulating string so that I can explore it and use it in future?
Thanks for your Help,
Rovi
07-19-2016 03:31 AM
Hi Rovi,
You can format the string to have a leading zero by using the following Str() expression:
Str(Parameters.StartDate.Month, "%02d")
You can use the expression browser to help you find the functions you need and their parameters:
Regards,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
07-19-2016 04:14 AM
Thanks Charlie.
I have another question
Is there a Parameters that will give me the time and date at the end of the test instead of the start of the test?
Thanks and Regards,
Rovi
07-19-2016 04:22 AM
Hi Rovi,
Can you ask this question under a new topic?
Thanks,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor
07-20-2016 09:57 PM
Hello Charlie,
Sure. Thanks for your inputs.
Regards,
Rovi