04-27-2008 11:50 PM
04-28-2008 12:46 PM
04-30-2008 12:44 AM
Dear Friend,
Thanks for your reply. You are right . But even without opening the Advanced settings from the Module settings, we need to set the remote host name and Remote VI Path programatically .I hope we can achieve this with Teststand API calls. Let us share if we have any idea.
04-30-2008 09:34 AM
Hey Prithivi,
You would just need to change the Local variables to the correct path and host dynamically. You can do it in a pre-expression for the step. You do not need to go through the API to change the Local variables. Then when the step goes to execute on remote host it will just look and see what's in that variable.
Regards,
04-30-2008 10:41 AM
04-30-2008 10:43 AM
04-30-2008 10:57 AM
05-05-2008 10:03 AM
Thanks Jigg,
Instead of using SData , we can use the step.Module. This is recommended by NI. Since Sdata is the hidden properties.Thanks for your valuable help.
I have one more question .
Is is possible to read the complete path of the labview module assigned in the step? When the user selects relative path in the select VI dialog prompt.
we can read this by Step.Module.AsLabVIEWModule.VIPath . But if we selcets as a relative path , then it is giving only the name of the VI. But Is it possible to read the complete path of the VI?
Your inputs are highly valuable.
05-06-2008 02:35 PM
05-06-2008 03:45 PM
Hi Prithivi,
I just realized that the path doesn't have to be relative to the Sequence File, but can be relative to any of the Search Paths that you have.
What you can do instead is use the FindFile Method in TestStand. This method will search the Search Paths for a file or relative path that you specify, and you can configure it to also look at the current Sequence File's path.
For example:
RunState.Engine.FindFile(Step.Module.AsLabVIEWModule.VIPath, Locals.Path, False, FindFile_PromptHonorUserPreference, FindFile_AddDirToSrchList_Ask, False, RunState.SequenceFile)
This will looks at the current Sequence File's path and your Search Paths for the Relative Path and store the resulting full path in Locals.Path.
Sorry for the confusion, hope this helps!