User manual

Chapter 3 Software Overview
© National Instruments Corporation 3-7 NI-DAQ User Manual for PC Compatibles
These three ActiveX controls actually call the NI-DAQ
Config_DAQ_Event_Message
,
Config_ATrig_Event_Message
and
Config_Alarm_Deadband
functions. Visual Basic applications cannot
receive Windows messages, but if you use NI-DAQ ActiveX controls
shown previously in this section, your Visual Basic application can receive
NI-DAQ messages.
Note
You can use the OCXs in Visual Basic, version 4.0 (32-bit) or later.
General DAQ Event
You use the General DAQ Event control to configure and enable a single
data acquisition event. See the Event Message Functions section earlier in
this chapter for a complete description of NI-DAQ events. Table 3-1 lists
the properties for the General DAQ Event control.
Note
An n represents a generic number and is not the same value in every occurrence.
Table 3-1. General DAQ Event Control Properties
Property Allowed Property Values
Name
GeneralDAQEvent
n
(default)
Board
1n (default)
ChanStr
See
Config_DAQ_Event_Message
in the
NI-DAQ Function Reference Online Help file.
DAQEvent
0Acquired or generated n scans
1Every n scans
2Completed operation or stopped by error
3Voltage out of bounds
4Voltage within bounds
5Analog positive slope triggering
6Analog negative slope triggering
7Digital pattern not matched
8Digital pattern matched
9Counter pulse event
DAQTrigVal0
Long
DAQTrigVal1
Long
TrigSkipCount
Long