NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i change AlwaysGotoCleanupOnFailure in CVI

Solved!
Go to solution

I want to change the "AlwaysGotoCleanupOnFailure" of StationOptions in CVI.

 

I use TS_API "TS_StationOptionsSetAlwaysGotoCleanupOnFailure(seqContextCVI,&errorInfo,VTRUE);  " to change it. but it;s don't work.

 

but I use it in LabVIEW,it's OK.

 

Why?

 

Teststand 3.5, LabVIEW 8.0, LabWindows\CVI 8.0

 

 

Download All
0 Kudos
Message 1 of 3
(3,388 Views)
Solution
Accepted by topic author xhsun826

Hi bisun,

 

The problem is because you are passing in the Sequence Context to the function, when you should be passing in the StationOptions (just like in LabVIEW).

Here is what the code should look like:

 

TSObj_Engine myEngine;

TSObj_StationOptions myStationOptions;

 

TS_SeqContextGetEngine (TS_SeqContext, &errorInfo, &myEngine);
TS_EngineGetStationOptions (myEngine, &errorInfo, &myStationOptions);
TS_StationOptionsSetAlwaysGotoCleanupOnFailure(myStationOptions, &errorInfo, VTRUE);

Jervin Justin
NI TestStand Product Manager
Message 2 of 3
(3,275 Views)

OK, It's work.

Great!

 

Thanks, Jervin.

 

0 Kudos
Message 3 of 3
(3,257 Views)