How can I change AlwaysGotoCleanupOnFailure in CVI

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

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

but I use it in LabVIEW, it is OK.

Why?

TestStand 3.5, LabVIEW 8.0, 8.0 LabWindows\CVI

Hi bisun,.

The problem is because you spend in the context of the sequence to the function, when you should be passing in the StationOptions (as in LabVIEW).

Here's what the code should look like:

MyEngine TSObj_Engine;

TSObj_StationOptions myStationOptions;

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

Tags: NI Software

Similar Questions

Maybe you are looking for