NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change report filepath in custom TS UI?

Solved!
Go to solution

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???

0 Kudos
Message 1 of 5
(3,650 Views)

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

0 Kudos
Message 2 of 5
(3,625 Views)

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!

0 Kudos
Message 3 of 5
(3,609 Views)

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 4 of 5
(3,603 Views)
Solution
Accepted by topic author NIRebot

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!!

0 Kudos
Message 5 of 5
(3,581 Views)