06-03-2011 07:54 PM - edited 06-03-2011 07:57 PM
I have made a custom TestStand UI (use TS API) with CVI. Now i want to change my report filepath in my UI.What should i do?
I have known one way,use Report Option Callback !!!
Is there another way???
Solved! Go to Solution.
06-06-2011 12:43 AM
Hi NIRebot,
If you are using the sequential process model, you can modify the report file path in Report options. The report file path is not tied to the UI that we use(either sequence editor or custom UI). I think you are looking for something else. Can you explain your requirement clearly.
Thanks,
Sathish
06-07-2011 06:26 AM
hi lordsathish:
change report filepath in report option of processmodel just fixed.
what i want is to change report paht anytime before a execution begin!
06-07-2011 09:29 AM
If it's before an execution then why wouldn't you use the Configure>>Report Options..? Unless of course you aren't using an NI provided process model, in which case you will have to create something like they have in their models. Just create a Configuration Entry point and call some code that changes the path, or better yet- Call it through the modelsupport2.dll like they do in the Sequential Model.
I'm trying to picture your UI and where you would have this option if not in the Configure menu. Doesn't really make sense to me.
I do know that the report path is saved in the TestStandModelReportOptions.ini file. This is in your Cfg directory which is linked in the <TestStand> directory. So really all you need to do is change the value in there somehow. Not only would you have to change the Directory but the DirectoryType would have to be set to "SpecificDirectory" as well. I'm guessing that's what the modelsupport2.dll is doing under the hood. You could browse through it's code if you know C and see how it's done. All the source code is there.
Hopefully this can help get you on the right path a bit. This seems like an interesting project but you are really getting into the guts of TestStand.
Good luck,
06-08-2011 07:28 PM
hi lordsathish:
It is a good idea to change the TestStandModelReportOptions.ini file.
I will modify the TestStandModelReportOptions.ini file in my custom UI to change the report filepath,
so it is work !
Thank you very much!!