LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Trapping Run-Time Errors

We have defined a Setup Function in a sequence we are running. When a 'FAIL'
is returned from this function a run-time error is generated and a run-time
error window is displayed. Is it possible to trap this error and not display
the window in certain circumstances? The function generating the error is
TX_RunSeqOrTest().
We are running LabWindows 5.0 and TestExecutive 2.0.1.

We would appreciate any help.

Joe Colson
0 Kudos
Message 1 of 2
(2,938 Views)
You can prevent LabWindows from breaking on library
errors with SetBreakOnLibraryErrrors(). I don't know if
this will work for TestExecutive functions.
Regards,
Reed.

//----------------------------------------------------------
Reed Blake
Beta Technology
Industrial and Scientific Computing

example:

int break_state, status
....
break_state = SetBreakOnLibraryErrors (0); // Disable break on library
errors
status = GetFileSize (name, &file_size); // Labwindows library
function
SetBreakOnLibraryErrors (break_state); // Restore break state.


Joe Colson wrote in message <3909bd00@newsgroups.ni.com>...
>
>We have defined a Setup Function in a sequence we are running. When a
'FAIL'
>is returned from this function a run-time error is generated and a run-
time
>error window is displayed. Is it possible to trap this error and not
display
>the window in certain circumstances? The function generating the error is
>TX_RunSeqOrTest().
>We are running LabWindows 5.0 and TestExecutive 2.0.1.
>
>We would appreciate any help.
>
>Joe Colson
0 Kudos
Message 2 of 2
(2,938 Views)