02-26-2007 02:37 PM
02-26-2007 05:45 PM
02-27-2007 02:00 PM
Hi Allen,
I create a sub-step group called PreUUT. My intention is to execute the PreUUT once regardless of me completely exiting TestStand or not. I notice that report file generator (.seq files) in the TestStand folder has ReportOptions parameters. So I simply copy and paste the ReportOptions into my newly created PreUUT. And paste the same into the sequence caller (main sequence). They are passed by reference. I check for syntax error. There is none.
Options I set in the PreUUT is
Parameters.ReportOptions.UseOnTheFlyReporting = False, Parameters.ReportOptions.DirectoryType = "Specific Directory", Parameters.ReportOptions.Directory = "C:\\...\\TEST_REPORTS\\..."
using statement (f(x)) in TestStand. These are only options in PreUUT with one f(x) statement. But when I run the sequence, there is no difference. Do I need to pass this parameter (ReportOptions) to Station Global or any place else? Or is there anything else I need to do?
Thanks,
02-28-2007 12:38 AM
Hi Leek,
Not sure why you are going down this route, you seem to making work for your self.
There is already a Sequence Callback called ReportOptions, which receives the parameter ReportOptions, this contains the settings from the Report Options Configuration. In the sequence ReportOptions, you can make your changes and these will get passed back to the process model sequence on return from the sequence ReportOptions.
In the TestStand Reference Manual Appendix A is the chapter on the various process models and you can see where the ReportOptions sequence is called in the process.
Hope this helps
Regards
Ray Farmer
02-28-2007 07:36 AM
Hi Ray,
I know all bout the ReportOptions setting through TestStand Configure pull-down manu. This setting place all report files into the same file path. And this is what we must avoid.
As I wrote in the first message, all of us share the same TestStand installed in the same Test Station. Each of us develop different TPS software, and report files of each TPS needs to go into different file path. This setting need to occure once for each TPS execution. This approach I am trying to accomplish is the shortest route.
Another tedious and much more painful is to copy all files in the C:\...\TestStand 3.5\Components\NI\Models\TestStandModels and place them into the C:\...\TestStand 3.5\Components\User location. Then modify all C codes that deal with report file path, rename the model, and call it through Configure >> Station Options >> Model. Other program I support went through this approach, and believe me, this is much more time consuming to get it to work. And reason for this is the same, reports for different TPS software need to be kept in different file location.
Thanks,
leek
02-28-2007 08:06 AM
02-28-2007 08:48 AM
OK I found it. My apology to Allen and Ray for misunderstanding. Now the ReportOptions is in my process model. I simply copied and pasted my f(x) statement shown in my 3rd reply above in blue color into the ReportOptions. I will test it when I have a chance.
Thanks,
leek
03-01-2007 11:21 AM
Everything appears to work consistently as expected. This issue is closed.
Thank You All