LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error handling; no messages

I used to get error messages all the time, now I get nothing.  It's a DAQmx program mainly.  Sometimes the program will just freeze from an error but gives no message so it's v. difficult to debug!  Here's an example.  In the code below, if I put in an AI.Max value greater than I specify in the Create Scale (Table) VI, an error occurs but I don't get a message; the program just freezes.  As a test, I wired up one of the AI Current examples the same way and I do get the automatic error message saying AI max is invalid.  In VI Properties>Execution, Automatic Error handling is enabled.  Is there a general cause for errors no longer being reported? 
Message Edited by Beck45 on 10-06-2009 04:19 PM
0 Kudos
Message 1 of 4
(2,760 Views)

You Should start by using error wires between VIs thsi si a good practice.  It will engforce data flow and allow errors to propogate and skip code that should not run durring error condition.. IE if DAQ init fails dont do DAQ start and Daq read.  The code here can cause problems since it is not easy to read but also does not handle errors properly.  You should always wire errors out to atleast the simple error handler otherwise you might not know that you are in an error state.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(2,744 Views)

Well actually I had those wired; I was deleting some to see the effect as it mentions in the Help to wire a VI's error out to disable automatic error handling. 

 

When I wired all the error terminals through the DAQ VI's (as in the examples), I used to get error messages.  Now that my program is much larger, I don't.  I'm wondering what causes that.

0 Kudos
Message 3 of 4
(2,712 Views)
Did you try leaving the error wires inplace and probing the error out of each vi.  this will let you know where the error is generated.  Is it possible that a subvi is not terminating?  If you have auto handle errors off and an error is not wired it should get announced.
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 4
(2,704 Views)