Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

How to programmatically add a sequence file to a project

$
0
0

Hi,
Using Teststand C++ API, I would like to add a sequence file to the current project in the current workspace.

My sequence file has been created using engine->NewSequenceFile(); and saved in the path "Path" (as std::string).
I try to create a new workspace file this way :

engine->CurrentWorkspaceFile->GetRootWorkspaceObject()->NewFile( _com_util::ConvertStringToBSTR(Path.c_str()) );

But this line throw a com exception "Unknown error 0xFFFFBC63" which should correspond to error -17309

What is the correct way to do this ?

Thank you.


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>