NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in execution of SEQUENCE Call step type using VC++.NET . The error code : -17208

Hi,
    I have two sequence call step types in main sequence file. Each one calls anoher sequence file. The main sequence file works properly in sequence editor. If I use same file in my applicaiton ( Developed in .NET using .NET API's) it throws an exception " Could not find the 'file name.seq', error code is -17208. Please provide me the solution.
 
Thank you,
 
regards
Kulkarni 
0 Kudos
Message 1 of 10
(5,401 Views)

Hi,

I am guessing that you must be using relative addressing for the paths to your sequencefiles. Its works in the sequence editor because everything is within the search directories. Therefore, you need to make sure your search directories are still relevant from your application.

Or

You haven't got a file called 'file name.seq'.

There is not a lot to go on here. Maybe post the actual error message, snippets of code on how your are deriving your paths and envoking the sequence call.

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 2 of 10
(5,399 Views)

Hi Ray,

This is the error I got

" could not find the 'Subsequence1.seq'.

The code is :

SequenceCallModule ^objm = (SequenceCallModule^)m_ObjStep ->Module;

stepSeqFile[paraNGrpNum] = m_ObjEngine ->GetSequenceFile(objm ->SequenceFilePath,

GetSeqFileOptions::GetSeqFile_FindFile); This line throws an error : -17208

objm =

nullptr;

objStepSeq = stepSeqFile[paraNGrpNum] ->GetSequenceByName(

"MainSequence");

exeObj1 = m_ObjEngine ->NewExecution(stepSeqFile[paraNGrpNum],objStepSeq->Name,stepSeqFile[paraNGrpNum],

false,ExecutionTypeMask::ExecTypeMask_Normal,System::Reflection::Missing::Value,

System::Reflection::Missing::Value,System::Reflection::Missing::Value);

Thank you

0 Kudos
Message 3 of 10
(5,397 Views)
Hi,
 
I am using this code snippet :
 

String strAbsolutePath;
Boolean bUserCancelled;
// Get the sequenceFile
if (engine.FindFile(strFileName, out strAbsolutePath, out bUserCancelled, FindFilePromptOptions.FindFile_PromptHonorUserPreference, FindFileSearchListOptions.FindFile_AddDirToSrchList_No, false, null) == true){ // just a FileOpenDialog you can srup it! But may be useful to find the right PathSmiley Very Happy

SequenceFile seqFile = engine.GetSequenceFileEx(strAbsolutePath, GetSeqFileOptions.GetSeqFile_OperatorInterfaceFlags, TypeConflictHandlerTypes.ConflictHandler_Error); ..............

Hope this helps

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 4 of 10
(5,391 Views)

Thank you  j_dodek ,

I will try with your code.

regards

Kulkarni

0 Kudos
Message 5 of 10
(5,385 Views)

Hi all,

 

Am using the Teststand simple operator interface example and slightly modified it by providing the path to open the sequence file instead of using the combobox and a button to open it.

 

But when executed it is throwing the error -17208 saying "File or directory not found". But when i verified the path it seems fine.( the same sequence file was executed in teststand editor without any problems.)

 

Please some one help to solve this issue.

 

thanks and regards,

sandeep 

0 Kudos
Message 6 of 10
(4,891 Views)

Does your path include the sequence file?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 7 of 10
(4,876 Views)

Hi Ray,

 

Thanks for the reply. Yes the path which i am specifying includes the sequence file also.

 

 

Regards,

sandeep

0 Kudos
Message 8 of 10
(4,871 Views)

Can you post some pictures of your mods, or code snippets?

 

regards

Ray

Message Edited by Ray Farmer on 05-26-2010 10:24 AM
Regards
Ray Farmer
0 Kudos
Message 9 of 10
(4,867 Views)

Hi Ray,

 

Please findattached code module where I am calling the sequence file to be opened.

 

Also i have attached some pictures for with comments.

 

 

Regards,

sandeep

0 Kudos
Message 10 of 10
(4,857 Views)