02-23-2010 05:30 AM
How do you add a popup to TS4 that asks the operator for his clock number ( must store it?) then prints it out ( in the report) at the end of the Test seq?? You'd want to ask for the clock # 1x until the operator logs out. I'm thinking just before the call to ask for the serial number in Test UUTs.
Thanks,
Clint
02-23-2010 07:02 AM
Clint,
i'd dock this feature at the user management. You can override the LoginLogout if desired in order to ask for this "clock number". Store the answer in a TestStand variable.
You would then modify the report generation in order to retrieve this data and include it in the report footer.
hope this helps,
Norbert
02-24-2010 05:10 AM
Hi Norbert,
Thanks. I looked at the Process Model and can't find the LoginLogout seq?? I guess I don't know how do I do this??
I also don't know how to mod the report gen. Any help/steps would be helpful.
Thanks,
Clint
02-24-2010 06:06 AM
Clint,
LoginLogout is not part of the process model since it must be executed outside of any running execution.
The Login and Logout is contained in the FrontEndCallback.seq which can be found in the <TestStand>\components\callbacks\frontend folder.
Norbert
02-24-2010 06:23 AM
Clint,
Probably your best bet would be to use one of the Callback sequence for the Header or Footer (ModifyReportHeader or ModifyReportFooter). There is an example in the examples folder for Modifying the Report Header. Also there is a tutorial in one of the Manuals.
Regards
Ray
02-24-2010 06:28 AM
So I mod the frontend callback seq to include a popup that asks for the operators clock #. ( enable response text) The clock num is stored in step.result.response. How do I get access to thet value and put it in the report?? Isn't it only live for that callback?
Clint
02-24-2010 06:35 AM
Clint Eastwood wrote:[...]The clock num is stored in step.result.response.[...]
Clint,
this is no good. Since you are not in a running execution, keeping the value "clock num" in a runstateproperty is worthless. The most simple thing is storing it into a StationGlobal i guess.
But please note that you should document this in order to know in several years why there is such a StationGlobal and how it is written....
hope this helps,
Norbert
02-24-2010 07:10 AM
StationGlobal is really your only option and use the option 0x1 (insertifmissing) so you dont need to worry whether its there or not.
The ideal solution would be to modify the loginlogout.dll to include your clock number so that you only have one dialog.
Regards
Ray Farmer
02-24-2010 07:11 AM
So I tried adding the popup in the frontend CB. I log in but no popup.
Is this getting too complex for DF??
Should I call NI w a SR??
Thanks
02-24-2010 09:08 AM
What is DF?
Adding a popup should work. Can you post the modified callback?