United Electronic Industries DN-MUX-414 Series User manual

DNx-MUX-414 / DNR-MUX-418
—
User Manual
14 channel 1x3 multiplexer / switch interface board
for the PowerDNA Cube and RACK chassis
and
18 channel 1x3 multiplexer / switch interface board
for the RACK chassis
May 2019
PN Man-DNx-MUX-414-418
© Copyright 1998-2019 United Electronic Industries, Inc. All rights reserved.

Information furnished in this manual is believed to be accurate and reliable. However, no responsibility
is assumed for its use, or for any infringement of patents or other rights of third parties that may result
from its use.
All product names listed are trademarks or trade names of their respective companies.
See the UEI website for complete terms and conditions of sale:
http://www.ueidaq.com/cms/terms-and-conditions/
Contacting United Electronic Industries
Mailing Address:
27 Renmar Avenue
Walpole, MA 02081
U.S.A.
For a list of our distributors and partners in the US and around the world, please contact a member of our
support team:
Support:
Telephone: (508) 921-4600
Fax: (508) 668-2350
Also see the FAQs and online “Live Help” feature on our web site.
Internet Support:
Support: [email protected]
Website: www.ueidaq.com
FTP site: ftp://ftp.ueidaq.com
Product Disclaimer:
WARNING!
DO NOT USE PRODUCTS SOLD BY UNITED ELECTRONIC INDUSTRIES, INC. AS CRITICAL
COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS.
Products sold by United Electronic Industries, Inc. are not authorized for use as critical components in
life support devices or systems. A critical component is any component of a life support device or
system whose failure to perform can be reasonably expected to cause the failure of the life support
device or system, or to affect its safety or effectiveness. Any attempt to purchase any United Electronic
Industries, Inc. product for that purpose is null and void and United Electronic Industries Inc. accepts
no liability whatsoever in contract, tort, or otherwise whether or not resulting from our or our
employees' negligence or failure to detect an improper purchase.
Specifications in this document are subject to change without notice. Check with UEI for
current status.

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board i
Table of Contents
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
Table of Contents
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 Organization of Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Manual Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 MUX-414 / MUX-418 Board Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.1 Multiplexing Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.2 Switch Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.3 Synchronization Input and Output Pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.4 Diagnostic Capabilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.5 Isolation & Over-voltage Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.6 Support Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.3.7 Software Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.4 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.5 Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.6 Specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.7 Device Architecture. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.7.1 Input Circuitry. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.7.2 Controlling Multiplexers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.7.3 Synchronization I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.8 Connectors and Wiring (Pinout) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Chapter 2 Programming with the High-Level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.1 Creating a Session . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2 Configuring Mux Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2.2.1 Configuring Break-before-make or Port On Delay . . . . . . . . . . . . . . . . . . . . . 10
2.3 Configuring the Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
2.4 Configuring Sync Input / Sync Output. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4.1 Configure Sync Out . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.4.2 Configure Sync In . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 Writing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.6 Monitoring Supply Voltage, Temperature & Status. . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.7 Monitoring Relay States & Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.8 Cleaning-up the Session. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Chapter 3 Programming with the Low-Level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.1 About the Low-level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.2 Low-level Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3 Low-level Programming Techniques. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.3.1 Data Collection Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.4 Programming the MUX-414 / MUX-418 (Immediate Mode) . . . . . . . . . . . . . . . . . . . 18
3.5 Writing MUX Relays & Control Bits. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.5.1 Programming Relays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
3.6 Reading Diagnostic Voltage, Temperature, and Status . . . . . . . . . . . . . . . . . . . . . . 21

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board ii
Table of Contents
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
3.7 Reading Status and Relay States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
3.8 Configuring Sync and Delays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.8.1 Example of Using Sync In / Sync Out Handshaking . . . . . . . . . . . . . . . . . . . 24
3.9 Configuring Break-before-make Functionality. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.9.1 Changing Break Duration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.9.2 Disabling Break-before-make . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Appendix A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A. Accessories. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board iii
List of Figures
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
List of Figures
Chapter 1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1-1 Photo of MUX-414 Multiplexer Board ............................................................................4
1-2 Architecture Block Diagram of DNA-MUX-414 / MUX-418 ............................................6
1-3 Single Channel Block Diagram for MUX-414 / MUX-418 ..............................................7
1-4 DB-62 I/O Connector Pinout for DNx-MUX-414 ............................................................8
1-5 DB-78 I/O Connector Pinout for DNR-MUX-418............................................................8
Chapter 2 Programming with the High-Level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Chapter 3 Programming with the Low-Level API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3-1 Block Diagram for MUX-414 / MUX-418......................................................................18
Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
A-1 Pinout and Photo of DNA-STP-62 Screw Terminal Panel ...........................................26

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 1
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
Chapter 1 Introduction
This document outlines the feature set and use of the DNx-MUX-414 and
DNR-MUX-418 boards.
MUX-414 / MUX-418 boards are 1x3 multiplexer / cross point switch interface
modules, for interfacing with switching and digital control applications.
NOTE: The DNR-MUX-418 is designed for use with UEI’s RACKtangle chassis
and is not available for FLATRACK or Cube chassis.
The DNx-MUX-414 boards are designed for use with all UEI chassis.
This chapter includes the following sections:
•Organization of Manual (Section 1.1)
•Manual Conventions (Section 1.2)
•MUX-414 / MUX-418 Board Overview (Section 1.3)
•Features (Section 1.4)
•Indicators (Section 1.5)
•Specification (Section 1.6)
•Device Architecture (Section 1.7)
•Connectors and Wiring (Pinout) (Section 1.8)
1.1 Organization
of Manual This MUX-414-418 User Manual is organized as follows:
• Introduction
This chapter provides an overview of DNx-MUX-414 and
DNR-MUX-418 1x3 multiplexer / cross point switch board features,
device architecture, connectivity, and logic.
• Programming with the High-Level API
This chapter provides an overview of how to create a session, configure
the session, and interpret results on the MUX-414 / MUX-418 series
boards for programming with the high-level Framework.
• Programming with the Low-Level API
This chapter provides an overview of low-level API commands for
configuring and using the MUX-414 / MUX-418.
• Appendix A - Accessories
This appendix provides a list of accessories available for use with the
DNx-MUX-414 and DNR-MUX-418 boards.
• Index
This is an alphabetical listing of the topics covered in this manual.

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 2
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
1.2 Manual
Conventions To help you get the most out of this manual and our products, please note that
we use the following conventions:
Tips are designed to highlight quick ways to get the job done or to reveal
good ideas you might not discover on your own.
NOTE: Notes alert you to important information.
CAUTION! Caution advises you of precautions to take to avoid injury, data loss,
and damage to your boards or a system crash.
Text formatted in bold typeface generally represents text that should be entered
verbatim. For instance, it can represent a command, as in the following
example: “You can instruct users how to run setup using a command such as
setup.exe.”
Bold typeface will also represent field or button names, as in “Click Scan
Network.”
Text formatted in fixed typeface generally represents source code or other text
that should be entered verbatim into the source code, initialization, or other file.
Before you begin:
Before plugging any I/O connector into the Cube or RACK chassis,
be sure to remove power from all field wiring. Failure to do so may
cause severe damage to the equipment.
No HOT SWAP
Always turn POWER OFF before performing maintenance on a UEI system.
Failure to observe this warning may result in damage to the equipment and
possible injury to personnel.
Usage of Terms
Throughout this manual, the term “Cube” refers to either a PowerDNA Cube
product or to a PowerDNR RACKtanglerack mounted system, whichever is
applicable. The term DNR is a specific reference to the RACKtangle, DNA to the
PowerDNA I/O Cube, and DNx to refer to both.

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 3
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
1.3 MUX-414 /
MUX-418
Board
Overview
The DNx-MUX-414 boards provide 14 independent 1 x 3 switches for use with
UEI Cube and RACK systems.
The DNA-MUX-414, DNR-MUX-414, and DNF-MUX-414 board versions are
compatible with the UEI Cube, RACKtangle, and FLATRACK respectively. All
board versions are functionally identical except for the mounting hardware. The
DNA version is designed to stack in a Cube chassis. The DNR/F versions are
designed to plug into the backplane of a RACK chassis.
The DNR-MUX-418 boards provide 18 independent 1 x 3 switches for use with
UEI RACKtangle and HalfRACK systems.
MUX-414 / MUX-418 boards are designed for use in a wide variety of switching
and digital control applications.
1.3.1 Multiplexing
Modes Each channel provides a “common” terminal connected to three independent
SPST (Form A) contacts. In a typical SIL application, this allows each flight
computer signal to be connected to the actual trainer, a simulated device, a third
test or error signal, or left open to simulate a broken wire or other open circuit
condition.
1.3.2 Switch
Conditions Each channel is capable of switching voltages up to ±48 VDC, AC waveforms
with peaks less than ±48 VDC or sinusoidal signals up to 34 Vrms.
Each channel is rated for continuous operation at 1 A DC or AC rms (at -40 to
85°C) with a switch resistance of less than 0.2 Ω(typical, not including external
cables). All relays default to “open” on power up/reset.
Switching rates up to 250 Hz are supported, and all channels default to break-
before-make relay operation.
1.3.3 Synchro-
nization Input
and Output
Pins
MUX-414 / MUX-418 boards can synchronize relay switching via the sync in pin
and sync out pins.
The sync out pin can be configured to change state when programming a relay
state change, and the sync in pin can be configured to delay the switching of
relays until the sync in pulses. Wiring the sync out pin of the final board
configured with the sync in pins of multiple MUX-414 / MUX-418 boards allows
hardware synchronization of relay switching on all outputs.
1.3.4 Diagnostic
Capabilities Users have the capability of reading onboard 2.5 V and 3.3 V supply levels, as
well as onboard temperatures. Users can also read back the current state of
each relay.
1.3.5 Isolation &
Over-voltage
Protection
Each board provides 350 VDC isolation between channels, as well as between
the board, chassis and other installed I/O boards.
1.3.6 Support
Accessories All DNx-MUX-414 connections are made through a 62-pin D connector. Users
may also connect the boards to our DNA-STP-62 screw terminal panel via the
DNA-CBL-62 cables. The cables are fully shielded and are available in 1, 3, 6,
10 and 20 foot lengths.
All DNx-MUX-418 connections are made through a 78-pin D connector. Users
may connect the boards to our DNA-STP-78 screw terminal panel via the
DNA-CBL-78 cables. The cables are fully shielded and are available in
3 and 10 foot lengths.

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 4
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
1.3.7 Software
Support The MUX-414 / MUX-418 series includes software drivers supporting all popular
operating systems including: Windows, Linux, QNX, VXWorks, RTX, and other
popular Real-Time Operating Systems. Windows users may use the UEIDAQ
Framework which provides a simple and complete software interface to all
popular Windows programming languages and data acquisition and control
applications (e.g. LabVIEW, MATLAB).
1.4 Features The MUX-414 / MUX-418 board provides the following features:
•DNx-MUX-14: 14 fully isolated 1 x 3 channel multiplexer/switch
DNR-MUX-18: 18 fully isolated 1 x 3 channel multiplexer/switch
•±48 VDC / 34 Vrms (sinusoidal) maximum operating voltage
•0.2 Ohm resistance (not including cabling)
•1 A continuous load current rating (at -40 to 85°C)
•3 A surge current (<100 mS)
•250 Hz update rate
•All switches Normally Off power up / reboot state
•350 VAC isolation
1.5 Indicators The MUX-414 / MUX-418 indicators are described in Table 1-1 and illustrated in
Figure 1-1.
Figure 1-1. Photo of MUX-414 Multiplexer Board
Table 1-1 MUX-414 / MUX-418 Indicators
LED Name Description
RDY Indicates board is powered up and operational
STS Indicates which mode the board is running in:
•OFF: Configuration mode (e.g., configuring channels,
running in point-by-point mode)
•ON: Operation mode
DNR bus
connector
DB-62 (female)
62-pin I/O connector
RDY LED
STS LED

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 5
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
1.6 Specification The technical specifications for the MUX-414 are listed in Table 1-2, and
technical specifications for the MUX-418 are listed in Table 1-3.
Table 1-2. DNx-MUX-414 Technical Specifications
p
Output conguration 14 independent 1 x 3 switches
Output specications
Rated Load (continuous) 1 A (-40 to +85°C) 2 A (-40 to +25°C)
Rated Load (peak) 3 A < 0.1 second
Max Operating Voltage 48 VDC, 48 V peak in AC waveforms,
34 Vrms (sinusoidal signals)
Absolute Max Voltage 55 VDC
Contact type Solid State
Contact ON impedance 0.2 Ohm typical, 0.25 Ohm max (at the I/O
connector)
Contact OFF impedance >100 MOhm
O Leakage Current < 5 nA typical, <3 μA max over full temp range
Max update rate 250 Hz (including break-before-make timing)
Turn-O Time <0.2 mS typical (1 mS max)
Turn-On Time < 0.45 mS typical (2 mS max)
Power up / reboot state All Switches O
Sync in/out specications
Sync in High Voltage 2.8 V min
Sync in Low Voltage 1.0 V max
Sync out High Voltage 3.55 V min / 4.0 V max @ 3 mA
Sync out Low Voltage 0.4 V max @ 3 mA
Power dissipation < 5 W
Isolation 350 Vrms
Isolation resistance >1 GOhm
Operating Temp. Range Tested -40 to +85 °C
Operating Humidity 95%, non-condensing
Vibration IEC 60068-2-6
IEC 60068-2-64
5 g, 10-500 Hz, sinusoidal
5 g (rms), 10-500 Hz, broad-band random
Shock IEC 60068-2-27 50 g, 3 ms half sine, 18 shocks @ 6 orientations
30 g, 11 ms half sine, 18 shocks @ 6 orientations

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 6
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
Table 1-3. DNR-MUX-418 Technical Specifications
1.7 Device
Architecture The MUX-414 / MUX-418 supports 14 and 18 independent 1x3 switches
respectively.
A block diagram of the MUX-414 / MUX-418 is shown below:
Figure 1-2. Architecture Block Diagram of DNA-MUX-414 / MUX-418
Output conguration 18 independent 1 x 3 switches
Output specications
Rated Load (continuous) 1A (-40 to +85°C) 2A (-40 to +25°C)
Rated Load (peak) 3 A < 0.1 second
Max Operating Voltage 48 VDC, 48V peak in AC waveforms,
34 Vrms (sinusoidal signals)
Absolute Max Voltage 55 VDC
Contact type Solid State
Contact ON impedance 0.2 Ohm typical, 0.25 Ohm max (at the I/O
connector)
Contact OFF impedance >100 MOhm
O Leakage Current 5 nA typical, 3 μA max over full temp range
Max update rate 250 Hz (including break-before-make timing)
Turn-O Time <0.2 mS typical (1 mS max)
Turn-On Time < 0.45 mS typical (2 mS max)
Power up / reboot state All Switches O
Sync in/out specications
Sync in High Voltage 2.8 V min
Sync in Low Voltage 1.0 V max
Sync out High Voltage 3.55 V min / 4.0 V max @ 3 mA
Sync out Low Voltage 0.4 V max @ 3 mA
Power dissipation < 5 W not including output switches
Isolation 350 Vrms
Isolation resistance >1 GOhm
Operating Temp. Range Tested -40 to +85 °C
Operating Humidity 95%, non-condensing
Vibration IEC 60068-2-6
IEC 60068-2-64
5 g, 10-500 Hz, sinusoidal
5 g (rms), 10-500 Hz, broad-band random
Shock IEC 60068-2-27 50 g, 3 ms half sine, 18 shocks @ 6 orientations
30 g, 11 ms half sine, 18 shocks @ 6 orientations
MTBF >400,000 hours
I/O Connector
32-bit 66-MHz bus
Control Logic
Relay Drivers
Relays

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 7
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
1.7.1 Input Circuitry Each channel provides a common (COM) terminal connected to three
independent SPST “A”/”B”/”C” (Form A) contacts. Refer to Figure 1-3 below for
a simplified block diagram of channel muxing.
Figure 1-3. Single Channel Block Diagram for MUX-414 / MUX-418
1.7.2 Controlling
Multiplexers Channel relays are opened or closed based on a single write, written as a port.
This means that each channel can have “A”, “B”, “C” or “none” closed
independently, but when you write the configuration state, all 14 / 18 channels
are written at once as a group.
By default, when users write new relay states, all closed relays open before new
relay states are closed. This break-before-make functionality is user-
configurable. Users can disable this feature, as well as program a delay in
microseconds for how long the contacts will be open before new connections are
made.
1.7.3 Synchro-
nization I/O Users have access to synchronization functionality via a sync in pin on the DB
connector and sync out functionality via a sync out pin on the DB connector or
via internal chassis bus lines.
The sync out functionality can be enabled to change state when programming a
relay state change. The pulse width and level of the pulse is user configurable.
The sync in functionality can be enabled, which delays relay state changes until
a pulse is received on the sync in pin. Triggering on a level or edge change, as
well as the polarity (high/rising or low/falling) is user configurable.
COM
A
B
C
Contacts for A, B and C are
independently programmable.

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 1 8
Introduction
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
1.8 Connectors
and Wiring
(Pinout)
Figure 1-4 shows the pinout of the 62-pin female connector of the MUX-414.
NOTE: *Pins marked ‘rsvd’ should be left open.
Figure 1-4. DB-62 I/O Connector Pinout for DNx-MUX-414
Figure 1-5 shows the pinout of the 78-pin female connector of the MUX-418:
Figure 1-5. DB-78 I/O Connector Pinout for DNR-MUX-418
SHIELD
Pin Signal
1 ch 11-A
2 ch 13 -B
3 ch 13 -A
4 ch 12 -B
5 sync out
6 ch 10 -B
7 ch 10 -A
8 ch 9 -B
9 ch 8 -B
10 ch 7 -B
11 ch 7 -A
12 ch 6 -B
13 ch 5 -B
14 ch 5 -A
15 ch 2 -A
16 ch 1 -B
17 ch 4 -B
18 ch 3 -B
19 ch 3 -A
20 ch 0 -B
21 rsvd*
Pin Signal
22 ch 11 -com
23 ch 13 -C
24 ch 13 -com
25 ch 12 -C
26 sync gnd
27 ch 10 -C
28 ch 10 -com
29 ch 9 -C
30 ch 8 -C
31 ch 7 -C
32 ch 7 -com
33 ch 6 -C
34 ch 5 -C
35 ch 5 -com
36 ch 2 -com
37 ch 1 -C
38 ch 4 -C
39 ch 3 -C
40 ch 3 -com
41 ch 0 -C
42 rsvd*
Pin Signal
43 ch 11 -C
44 ch 11 -B
45 ch 12 -A
46 ch 12 -com
47 sync +3.75V
48 sync in
49 ch 9 -A
50 ch 9 -com
51 ch 8 -A
52 ch 8 -com
53 ch 6 -A
54 ch 6 -com
55 ch 2 -C
56 ch 2 -B
57 ch 1 -A
58 ch 1 -com
59 ch 4 -A
60 ch 4 -com
61 ch 0 -A
62 ch 0 -com
Pin Signal
1 ch 17 -A
2 ch 17 -B
3 ch 17 -C
4 ch 17 -Com
5 ch 16 -A
6 ch 16 -B
7 ch 16 -C
8 ch 16 -Com
9 ch 15 -A
10 ch 15 -B
11 ch 15 -C
12 ch 15 -Com
13 ch 14 -A
14 ch 14 -B
15 ch 14 -C
16 ch 14 -Com
17 ch 0 -Com
18 rsvd*
19 rsvd*
20 ch 0 -B
Pin Signal
21 ch 11 -A
22 ch 13 -B
23 ch 13 -A
24 ch 12 -B
25 sync out
26 ch 10 -B
27 ch 10 -A
28 ch 9 -B
29 ch 8 -B
30 ch 7 -B
31 ch 7 -A
32 ch 6 -B
33 ch 5 -B
34 ch 5 -A
35 ch 2 -A
36 ch 1 -B
37 ch 4 -B
38 ch 3 -B
39 ch 3 -A
Pin Signal
40 ch 11 -Com
41 ch 13 -C
42 ch 13 -Com
43 ch 12 -C
44 sync gnd
45 ch 10 -C
46 ch 10 -Com
47 ch 9 -C
48 ch 8 -C
49 ch 7 -C
50 ch 7 -Com
51 ch 6 -C
52 ch 5 -C
53 ch 5 -Com
54 ch 2 -Com
55 ch 1 -C
56 ch 4 -C
57 ch 3 -C
58 ch 3 -Com
59 ch 0 -C
Pin Signal
60 ch 11 -C
61 ch 11 -B
62 ch 12 -A
63 ch 12 -Com
64 sync +3.75V
65 sync in
66 ch 9 -A
67 ch 9 -Com
68 ch 8 -A
69 ch 8 -Com
70 ch 6 -A
71 ch 6 -Com
72 ch 2 -C
73 ch 2 -B
74 ch 1 -A
75 ch 1 -Com
76 ch 4 -A
77 ch 4 -Com
78 ch 0 -A

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 9
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
Chapter 2 Programming with the High-Level API
This chapter provides the following information about using the UeiDaq
Framework High-Level API to control the MUX-414 / MUX-418:
•Creating a Session (Section 2.1)
•Configuring Mux Port (Section 2.2)
•Configuring the Timing (Section 2.3)
•Configuring Sync Input / Sync Output (Section 2.4)
•Writing Data (Section 2.5)
•Monitoring Supply Voltage, Temperature & Status (Section 2.6)
•Monitoring Relay States & Status (Section 2.7)
•Cleaning-up the Session (Section 2.8)
UeiDaq Framework is object oriented and its objects can be manipulated in the
same manner from different development environments, such as Visual C++,
Visual Basic, or LabVIEW.
The following section focuses on the C++ API, but the concept is the same no
matter what programming language you use.
Please refer to the “UeiDaq Framework User Manual” for more information on
use of other programming languages.
2.1 Creating a
Session The Session object controls all operations on your PowerDNx device. The first
task when programming using the high-level Framework is to create a session
object:
2.2 Configuring
Mux Port You use a Mux session to configure MUX-414 / MUX-418 channels. All channels
are configured as one port (mux0).
The MUX-414 / MUX-418 provides break-before-make functionality, which
defaults to opening all relays (A, B, and C) for a channel when opening or
closing any one relay (A, B, or C). You can disable this break-before-make
default functionality if you wish when creating the session.
The following call configures the mux port of a DNx-MUX-414 / MUX-418 set as
device 1 with break-before-make functionality enabled.
CreateMuxPort configures the following parameters:
• breakBeforeMake: true to enable break-before-make, false otherwise
(boolean).
// create a session object
CUeiSession muxSession;
// Configure session to write to port 0 on device 1
muxSession.CreateMuxPort("pdna://192.168.100.2/Dev1/mux0", true);

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 10
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
2.2.1 Configuring
Break-before-
make or Port
On Delay
Users can configure the delay that relays will stay open before closing (break-
before-make delay), whether or not break-before-make functionality is enabled,
and the delay before a new write will be accepted (port on delay).
By default, break-before-make circuitry is enabled, and the break delay is set to
250 µS. The default port on delay is 100 µS.
To enable/disable break-before-make and/or program delays, you first get a
pointer to the mux port object of the MUX-414 / MUX-418 board:
You can enable or disable break-before-make when you first create the channel
(see Section 2.2 above) or by using the EnableBreakBeforeMake method.
The following example shows you how to turn break-before-make off using the
EnableBreakBeforeMake method:
You can change the amount of time the A, B, and C relays for a channel open
before they close with the SetOffDelay method.
The following example sets the off delay to 350 µS:
You can change the amount of time before a new write command will be
accepted with the SetOnDelay method.
The following example sets the on delay to 150 µS:
2.3 Configuring
the Timing You can configure the MUX-414 / MUX-418 to run in simple mode (point by
point).
In simple mode, the delay between samples is determined by software on the
host computer.
The following sample shows how to configure the simple mode. Please refer to
the UeiDaq Framework User Manual to learn how to use other timing modes.
CUeiMuxPort* pChan =
dynamic_cast<CUeiMuxPort *>(muxSession.GetChannel(0));
pChan->EnableBreakBeforeMake(false);
pChan->SetOffDelay(350);
pChan->SetOnDelay(150);
// configure timing for point-by-point (simple mode)
muxSession.ConfigureTimingForSimpleIO();

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 11
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
2.4 Configuring
Sync Input /
Sync Output
Users can optionally configure the MUX-414 / MUX-418 to synchronize relay
switching to use an external hardware trigger via the sync in pins. Alternatively,
you can configure sync out pins to pulse on a relay write.
As an example, you can use the sync out pin on one MUX-414 / MUX-418 to
synchronize other MUX-414 / MUX-418 boards via their sync in pins.
To use this option, connect the sync out pin of the one board to the sync in pins
of the others (and connect sync gnd of all boards).
In your application, program multiple MUX-414 / MUX-418 boards to turn
channel relays on or off as needed, but configure the sync in flag to delay the
actual hardware switching until those boards receive a synchronization pulse on
their sync in pins. Then configure the MUX-414 / MUX-418 board that is
controlling sync out to pulse its MUX-414 / MUX-418 sync output pin when its
relay write is programmed.
2.4.1 Configure
Sync Out To program this, first get a pointer to the mux port object of the
MUX-414 / MUX-418 board that you wish to configure the sync out pin for:
Configure the sync output mode with the SetSyncOutputMode API.
The following configures the sync out pin to pulse low when the relays are ready
(otherwise it is high).:
SetSyncOutputMode accepts the following options for configuration:
CUeiMuxPort* pChanOut =
dynamic_cast<CUeiMuxPort *>(muxSessionOut.GetChannel(0));
pChanOut->SetSyncOutputMode(UeiMuxSyncOutputRelaysReadyPulse1);
Option Name Description
UeiMuxSyncOutputLogic0 drive constant logic '0'
UeiMuxSyncOutputLogic1 drive constant logic '1'
UeiMuxSyncOutputSyncLine0 through
UeiMuxSyncOutputSyncLine3 driven by internal SYNC BUS[0] through [3]
UeiMuxSyncOutputRelaysReadyPulse0 pulse logic ‘1’ on "relays ready" for a pulse width duration
of programmed with SetSyncOutputPulseWidth
(100 µs default)
UeiMuxSyncOutputRelaysReadyPulse1 pulse logic ‘0’ on "relays ready" for a pulse width duration
of programmed with SetSyncOutputPulseWidth
(100 µs default)
UeiMuxSyncOutputRelaysReadyLogic0 drive logic ‘0’ while "relays ready" (UEI internal test mode)
UeiMuxSyncOutputRelaysReadyLogic1 drive logic ‘1’ while "relays ready" (UEI internal test mode)

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 12
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
You configure the sync out pulse width with the SetSyncOutputPulseWidth
method. Note that the pulse width is only configurable when using the following
sync modes:
•UeiMuxSyncOutputRelaysReadyPulse0
•UeiMuxSyncOutputRelaysReadyPulse1
In this example, we configure the sync out pin to pulse low for 1 ms when the
relays are ready (otherwise it is high):
SetSyncOutputPulseWidth accepts 1 µS, 10 µS, 100 µS, and 1000 µS
options as the pulse width parameter.
2.4.2 Configure
Sync In To configure sync in, get the pointer(s) to the mux port object(s) of the
MUX-414 / MUX-418 board(s) that you wish to configure the sync in pin(s) for.
To program this, first get a pointer to the mux port object of the
MUX-414 / MUX-418 board that you wish to configure the sync in pin for:
Enable sync in:
Configure the sync in circuitry to trigger the relay writes on a rising edge:
Accepted values for SetSyncInputEdgePolarity are:
•UeiDigitalEdgeRising: Detect rising edge
•UeiDigitalEdgeFalling: Detect falling edge
pChanOut->SetSyncOutputPulseWidth(1000);
CUeiMuxPort* pChan =
dynamic_cast<CUeiMuxPort *>(muxSession.GetChannel(0));
pChan->EnableSyncInput(true);
pChan->SetSyncInputEdgePolarity(UeiDigitalEdgeRising);
pChan->EnableSyncInputEdgeMode(true);

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 13
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
2.5 Writing Data Writing data is done using a MuxWriter object.
The following sample shows how to create a writer object and write multiplexer
switches:
You program the multiplexer channels using the WriteMux method, which gets
passed how many channels you wish to program, which channels, and what
states.
You can program one of 4 mux states for each MUX-414 / MUX-418 channel:
•0: Open A, B, and C relays
•1: Close the A relay, open B and C
•2: Close the B relay, open A and C
•3: Close the C relay, open A and B
The following example of writes 5 channels: 0, 2, 5, 11, and 12, which are
reprogrammed with the following changes:
•channel 0: close relay A (1)
•channel 2: close relay B (2)
•channel 5: close relay C (3)
•channel 11: open all relays (0)
•channel 12 close relay C (3)
// create a writer and link it to the session’s stream
CUeiMuxWriter muxWriter(muxSession.GetDataStream());
// declare arrays to hold channels and states (up to 14 channels)
int channels[14];
int relays[14]
// set up list of channels as described in example:
channels[0] = 0;
channels[1] = 2;
channels[2] = 5;
channels[3] = 11;
channels[4] = 12;
// set up list of relay states as described in example:
relays[0] = 1;
relays[1] = 2;
relays[2] = 3;
relays[3] = 0;
relays[4] = 3;
// write the 5 channels
writer.WriteMux(5, channels, relays);

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 14
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
2.6 Monitoring
Supply
Voltage,
Temperature
& Status
The MUX-414 / MUX-418 provides the diagnostic capability of monitoring
onboard supply voltages and temperature using an onboard ADC. Additionally,
you can also retrieve status.
To monitor diagnostic data, use the ReadADC method.
You can read up to 5 diagnostic channels:
•ADC channel 0: <Reserved>
•ADC channel 1: The 3.3 V supply in volts
•ADC channel 2: The 2.5 V supply in volts
•ADC channel 3: The temperature in degrees C
•ADC channel 4: The status (uint32, see description in Section 2.7)
The following code shows how to read the voltage and temperature:
NOTE: You can also retrieve status data with the ReadStatus method (see
Section 2.7).
// read all 5 values
double adcBuffer[5];
muxWriter.ReadADC(5, adcBuffer, NULL);
// print supplies and temp
for(int j = 1; j<4; j++)
{
std::cout << " adc" << j << "= " << adcBuffer[j];
}
std::cout << std::endl;

DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2 15
Programming with the High-Level API
May 2019 www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
2.7 Monitoring
Relay States
& Status
You can monitor current relay states and status data with the ReadStatus
method:
ReadStatus(uInt32 *relayA, uInt32 *relayB,
uInt32 *relayC, uInt32 *status)
where
•relayA: bitwise representation of relay A states (1 is closed, 0 open)
•relayB: bitwise representation of relay B states
•relayC: bitwise representation of relay C states
•status: bitwise representation of board status
Status is returned as:
•Bit 17: ‘1’ means data is ready from ADC
•Bit 16: ‘1’ means overrun (write while busy)
•Bit 3: ‘1’ means state machine is busy
•Bit 2: ‘1’ means output state machine is waiting for the
external SYNC/ready
•Bit 1: ‘1’ means relays are settled
•Bit 0: reports the logic state of the sync in pin
•all other bits are <Reserved>
The following code shows how to read the relay states and status:
2.8 Cleaning-up
the Session The session object will clean itself up when it goes out of scope or when it is
destroyed. To reuse the object with a different set of channels or parameters,
you can manually clean up the session as follows:
// read all current relay state and status
uInt32 stRelayA, stRelayB, stRelayC, status;
muxWriter.ReadStatus(&stRelayA, &stRelayB, &stRelayC, &status);
// print results
std::cout << std::hex << " relayA=" << stRelayA <<
" relayB=" << stRelayB <<
" relayC=" << stRelayC <<
" status=" << status << std::dec << std::endl << std::endl;
// clean up the session
muxSession.CleanUp();
This manual suits for next models
1
Table of contents