10-24-2008 05:02 AM
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
Solved! Go to Solution.
12-29-2008 02:36 PM
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);
12-30-2008 08:21 AM
OK, It's work.
Great!
Thanks, Jervin.