Omega OMB-DAQ-54 User Manual page 131

Usb data acquisition modules
Table of Contents

Advertisement

If the handle is still –1 at this point, we know that either a Personal Daq/56 device was not located on the
system, or that whatever Personal Daq/56 device was located on the system could not be properly opened.
If handle& = -1 Then
Exit Sub
End If
An iteration on the channel count is used to initialize the scan sequence arrays and configure the frequency
and pulse counter channels. The following table indicates the content of the scan sequence arrays after this
iteration is completed:
Subscript
Analog Input Channels
0
1
2
3
4
5
6
7
8
9
Digital Ports
10
11
Frequency Input / Pulse Count Channels
12
13
14
15
For i = 0 To ChanCount
The VBdaqSetOption function is used to set individual channel options. The sequence of calls below
configures the current channel chans&(i&) to measure 0 pulses per scan (DcotpDaqPulses) based on time
measurements between the successive rising edges of the input signal, disables debouncing, sets the
minimum and maximum values for the frequency range (maximum frequency range value is 1000 Hz), and
configures the measurement rate to be 1 Hz.
A-12
API Custom Program Models
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Print "Cannot open PersonalDaq!"
Gain Sequence Array
gains()
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
(
Does not apply to Personal Daq/54
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
PGainX1
If (0 <= i) And (i < 10) Then
' Analog input channels
chans&(i) = startChan + 1
flags&(i) = AnaFlags
ElseIf (10 <= i) And (i < 12) Then
' Digital I/O ports
chans&(i) = startChan + (i - 10)
flags&(i) = DigFlags
ElseIf (12 <= i) And (i < 14) Then
' Frequency input channels configured for frequency input
chans&(i) = startChan + (i - 12)
flags&(i) = FreqFlags
Appendix A
Channel
Flag Sequence
Sequence Array
Array
channels()
flags()
1 (startChan)
AnaFlags
2
AnaFlags
3
AnaFlags
4
AnaFlags
5
AnaFlags
6
AnaFlags
7
AnaFlags
8
AnaFlags
9
AnaFlags
10
AnaFlags
)
1 (startChan)
DigFlags
2
DigFlags
(
Does not apply to Personal Daq/54
1 (startChan)
FreqFlags
2
FreqFlags
3
CtrFlags
4
CtrFlags
)
Personal Daq User's Manual

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-daq-55Omb-daq-56

Table of Contents