Configure Vr Channels; High-Level Api For Vr Channel Configuration - Ametek DN VR-608 Series User Manual

8-channel variable reluctance sensor interface for the powerdna cube and rack series chassis
Table of Contents

Advertisement

4.5
Configure VR
Channels
//Configure session to access VR channel 0.
//Configure channel 0 for a Timed measurement.
CUeiVRChannel* vr0 = vrSession.CreateVRChannel(
Table 4-1 High-level API for VR Channel Configuration
Method
SetMode
SetZCMode
SetZCLevel
SetAPTMode
SetAPTThresholdDivider
SetADCMovingAverage
© Copyright 2024
United Electronic Industries, Inc.
The CreateVRChannel() method adds a VR channel to the session, sets the
channel mode, and returns a pointer to the channel.
The input parameters are:
resource – specifies the device and subsystem (see Section 4.4).
mode – Counter/timer mode (see descriptions in Section 2.2.4.1). One
of the following tUeiVRMode values.
UeiVRModeDecoder
UeiVRModeCounterTimed
UeiVRModeCounterNPulses
UeiVRModeCounterZPulse
UeiVRModeCounterTorque
UeiVRModeCounterTimedPulsePeriodMeasurement
You can configure additional channel settings by calling the CUeiVRChannel
methods summarized in Table 4-1. Settings apply to either an individual channel
(C), a pair of channels (P), or the entire board/layer (L). For example, setting the
ZC mode on Channel 0 automatically sets the same mode for Channel 1.
Configuration status can be obtained by calling the corresponding "get" or "is"
method.
C/P/L
Rev.1
C/P
P
C
P
C
P
February 2024
DNx-VR-608 Variable Reluctance Interface
Programming with the High-level API
"pdna://192.168.100.2/Dev1/vr0",
UeiVRModeCounterTimed);
Rev.2
Description
Select counter/timer mode.
Select zero crossing detection mode.
Set zero crossing level for UeiZCModeFixed
(-5 V to +5 V). If the desired zero crossing level is
0 V, UEI recommends setting the desired zero
crossing level to a value slightly above 0 to avoid
false positives, e.g., 0.1 V.
Select peak threshold detection mode.
Set peak threshold divider for
UeiAPTModeLogic (1...4). Threshold will be a
fraction of moving average peak value, where 1 =
½, 2 = ¼, 3 = 1/8th, and 4 = 1/16th.
Moving average for UeiZCModeLogic and
UeiAPTModeLogic (0...3, where 0 = off, 1 = 3
samples, 2 = 4 samples, 3 = 8 samples).
Chapter 4
29
www.ueidaq.com
508.921.4600

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dna-vr-608Dnr-vr-608Dnf-vr-608

Table of Contents