ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
ni.com checkout is currently experiencing issues.
Support teams are actively working on the resolution.
04-02-2015 08:42 AM
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.
Solved! Go to Solution.
04-02-2015 09:24 AM
Not sure if this works or applies... but it looks right:
http://www.ni.com/example/25087/en/
Regards,
04-07-2015 05:54 AM
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).
04-07-2015 08:16 AM
UPD:
Unfortunatelly, such method doesn't work...
04-08-2015 06:22 AM
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.