Read Status; Stop Cleanly; Rtdmap Api - 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

5.4.3.2
Read
Diagnostic
Data
//Enable ADC writes to FIFO and read the maximum number of data points
//for a Rev. 2 board.
//data_a and data_b contain channel 0 and 1 voltage respectively
//First, clear the FIFO data by passing in 0 for sizemax
DqAdv608ReadADCFifo(hd, DEVN, 0, 0, &size, &avail, data_a, data_b, NULL);
DqAdv608ReadADCFifo(hd, DEVN, 0, DQ_VR608_FIFOSZ_R2, &size, &avail,
data_a, data_b, NULL);
//Return status data structure for channels 0 and 1.
DQ_VR608_ADC_STS ain_sts;
DqAdv608ReadADCStatus(hd, DEVN, 0, &ain_sts);
5.4.4

Read Status

// Read Status.
DqAdv608ReadStatus(hd, devn, pRdSts);
5.4.5

Stop Cleanly

// Disable operation.
DqAdv608Enable(hd, DEVN, 0x00);
5.5

RtDMap API

© Copyright 2024
United Electronic Industries, Inc.
For debugging purposes, it is possible to directly read ADC voltage and status
information. ADC data is always returned for both channels in a pair. Actual data
size returned is limited to network packet size, so multiple calls must be made
from the host application to retrieve the entire FIFO buffer.
Information for alarm status, status for the digital inputs, and revision information
for the VR-608 board can be obtained by calling DqAdv608ReadStatus().
pRdSts is a pointer to a DQ_VR608_RD_STS struct that includes the following
members:
alarm - provides alarm status See Table 4-9 for bit assignments.
ttl - shows routing of TTL inputs.
rev2 - returns 2 for Rev. 2 DNx-VR-608 boards or 0 for Rev. 1 boards.
To stop operation, call DqAdv608Enable() with a FALSE parameter:
This stops operation of the DNx-VR-608 board without changing the
configuration.
Real Time Data Map (RtDMap) mode uses the same API as Point-by-Point
mode for channel configuration (Section 5.4); however, generic DMap functions
are used for reading data. The DMap API is documented in the "PowerDNA API
Reference Manual".
February 2024
DNx-VR-608 Variable Reluctance Interface
Programming with the Low-level API
Chapter 5
52
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