NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand API: Set relative path

Solved!
Go to solution

Dear NI community!

Could someone help, please, with the following - is there is some option to set file path to code modules, inside test sequence, to have relative, but not absolute path? I add programmatically code modules to sequence steps, but currently they have absolute path. Is it possible to change it to relative with TestStand API?

 

Thanks in advance.

0 Kudos
Message 1 of 5
(5,784 Views)

Not sure if this works or applies... but it looks right:

 

http://www.ni.com/example/25087/en/

 

Regards,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(5,780 Views)

Thank you very much for the proposed solution! It doesn't fit to my needs, but I've got idea based on it, so thanks ) I'm gonna set path to code modules from the beginning like relative, based on pathes in Search Directories (or even add necessary pathes to Search Directories).

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

UPD:

Unfortunatelly, such method doesn't work...

0 Kudos
Message 4 of 5
(5,724 Views)
Solution
Accepted by topic author kosist90

I was wrong. It's possible to manually cut path to file (according to Search Directories of TestStand). Then code modules will be added with relative pathes. But one should be careful - path should be cut correctly.

For example, I have full path

E:\Development\source code\supplementary\TestVIs\Code Modules\Service\Print.vi

My Search Directory is 

E:\Development\source code\supplementary\TestVIs\

So, I need to cut like this:

Code Modules\Service\Print.vi

and without slash at the beginning!

Then it will be OK.

Message 5 of 5
(5,706 Views)