NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

html report is not saved when sequence files are called from CVI application

Hi all,

When I call a sequence file from an application developped in LabWindows/CVI the HTML report as configured in the model file is not saved to disk. If I open the same file in TestStand and do execute -> Test UUT's, the HTML is saved correctly. I checked the sequence files use the model i specified.

Can anyone give me pointers to information or gotcha's i should look out for?

I'm using TestStand 3.5 and LabWindows / CVI 8.0.0 (273)

Any help is much appreciated.

T.i.a. & regards,

Dagget


0 Kudos
Message 1 of 4
(3,116 Views)

Hi,

How are you calling the execution of the sequence file in your application?

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,085 Views)
Hi,

I have found the answer, but I waited with a reply before I had tested it. But here follows the solution:

I called the sequence file from an operator interface I had developped using LabWindows / CVI 8, using the function as below.
It turned out I was calling the sequence file directly without using the proper model. I changed this to calling the Test UUTs sequence and supplying the model in the function call. The function you see here makes calling the model or a single sequence an option by setting the input parameter useModel.

static HRESULT i32_SendTestStandSequence( int useModel )
{
    char *modelDesc = NULL;
    CAObjHandle modelSeqFile = 0;
    HRESULT hresult;
    char sequence[MAX_LEN_PATH + MAX_LEN_SEQNAME] = "";

    if ( useModel ){
        TS_SeqFileGetModelSeqFile(gMainWindow.start_sequence, &errorInfo, &modelDesc, &modelSeqFile);//get handle of process model
        strcpy( sequence, "Test UUTs" );
    } else {
        modelSeqFile = 0;
        strncpy( sequence, s_IniVars.ac_StartSequence, MAX_LEN_PATH + MAX_LEN_SEQNAME );
    }
   
    // See teststand helpfile under Sequence -> executing
    hresult = TS_EngineNewExecution( gMainWindow.engine,            // engine
                                    &errorInfo,                     // errorinfo
                                    gMainWindow.start_sequence,        // handle sequence file
                                    sequence,                         // sequence name
                                    modelSeqFile,                    // handle process model
                                    VFALSE,                            // breakAtFirstStep
                                    TS_ExecTypeMask_Normal,            // executionType
                                    CA_DEFAULT_VAL,                 // sequenceArgs
                                    CA_DEFAULT_VAL,                    // editArgs
                                    CA_DEFAULT_VAL,                 // interactiveArgs
                                    &gMainWindow.CurrentExecution );// handle executionObject

    return hresult;
}

This works for me.

Dagget

0 Kudos
Message 3 of 4
(3,083 Views)

Hi,

I had a feeling that is what your problem was, glad you have it working.

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 4
(3,080 Views)