Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting AI overload

I'm measuring analog input voltages from a 6036 using the ComponentWorks
ActiveX stuff in VB.NET.

All works fine, but as the subject suggests I cannot see how to reliably
detect an input overload. I have set "ErrorEventMask" to a variety of error
contexts, including "Read", but the "DAQError" event does not fire on an
overload. I have tried "ExceptionOnError" true or false; no event fires, no
exception.

What voodoo is required?

--
Dr. Craig Graham, Software Engineer
Advanced Analysis and Integration Limited, UK. http://www.aail.co.uk/
0 Kudos
Message 1 of 2
(3,419 Views)
Craig,

When you refer to detecting an analog input overload, do you want an event to occur when the input signal exceeds the limits of the NI 6036E, or do you want an event to occur when user-specified limits are exceeded? I would suggest that you consider using DAQ Events. You should examine the AlarmEvent and GeneralDAQEvent ActiveX controls. With the GeneralDAQEvent control, you will be interested in the "Voltage out of bounds" event.

Good luck with your application.

Spencer S.
0 Kudos
Message 2 of 2
(3,419 Views)