Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Nov 29, 2006


Feedback


Yes No

Related Categories

Products

Related Links - Developer Zone

Related Links - Products and Services

Matrix Switch Expansion Guide

18 ratings | 3.72 out of 5
Print

Overview

A matrix is the most versatile switch topology. It is made up of rows and columns that can connect any input to any output. With a matrix switching system, you can connect several instruments to various test points on a unit under test (UUT). This capability can eliminate your need to duplicate instruments and thus reduce your cost to test.

Matrix Size


Matrix size is often described as M rows by N columns (M x N) configurations. Some common configurations are 4 x 64, 8 x 32, and 16 x 16. For information on multiple-wire (2-wire) switching and its alternatives, consult the Complete Switching Tutorial.

Because of its flexible architecture, a matrix is also easily inverted, whereby rows become columns and columns become rows. You achieve this simply by how you wire the matrix. For example, a 4 x 64 matrix can be made into a 64 x 4 matrix. This knowledge is especially useful in matrix selection, because it can save you time and money.

With some modules, you can partition a matrix into several smaller configurations within the module. For example, you can create dual or quad configurations, which respectively provide you with two or four smaller matrices in a single module. Some common examples of partitioned matrices include dual 4 x 32, dual 8 x 16, and quad 4 x 16 configurations.

See Also:
Complete Switching Tutorial

Terminal Block Configurations



With National Instruments matrix switch offerings -- NI 2501, NI 2503, SCXI-1127, SCXI-1128, and SCXI-1129 -- you can achieve several different 2-wire matrix configurations through the use of terminal blocks. The following table describes configurations you can readily achieve using the corresponding matrix module and terminal block.
Table 1. 2-Wire Configurations Achieved with Terminal Blocks

Matrix Size
Module
Terminal Block
4 x 6
NI 2501/2503
TB-2606
4 x 8
SCXI-1127/1128
SCXI-1332
Quad 4 x 16
SCXI-1129
SCXI-1333
4 x 64
SCXI-1129
SCXI-1334
8 x 32
SCXI-1129
SCXI-1335
16 x 16
SCXI-1129
SCXI-1336
Dual 8 x 16
SCXI-1129
SCXI-1337
Dual 4 x 32
SCXI-1129
SCXI-1339

Matrix Expansion



Matrix modules can also serve as building blocks for creating larger configurations that are well beyond the size of a single module. Connecting the rows of two modules doubles the column size. Likewise, connecting the columns of two modules doubles the row size. The following is a compilation of frequently asked questions (FAQs) in regard to expanding a matrix.

Matrix Switch Expansion FAQs



How do I determine the number of modules my matrix requires?
For the purpose of this example, assume your application requires a 21 x 50 matrix and that you have chosen to create it with 4 x 8 matrix modules. These are the steps:

Method 1:

1. Determine the matrix size of a single switch module. (4 x 8)

2. Divide the number of rows desired by the number of rows in a single module. Then round up the answer. (21 / 4 = 5.25) » 6 modules

3. Divide the number of columns desired by the number of columns in a single module. Then round up the answer. (50 / 8 = 6.25) » 7 modules

4. Multiple the values found in steps 2 and 3 to determine the number of modules required by your matrix. (6 x 7 = 42, which creates a 24 x 56 matrix)

Method 2:

1. Determine the matrix size of a single switch module. (8 x 4)

2. Divide the number of rows desired by the number of rows in a single module. Then round up the answer. (21 / 8 = 2.625) » 3 modules

3. Divide the number of columns desired by the number of columns in a single module. Then round up the answer. (50 / 4 = 12.5) » 13 modules

4. Multiple the values found in steps 2 and 3 to determine the number of modules required by your matrix. (3 x 13 = 39, which creates a 24 x 52 matrix)


How do I expand the number of rows?
Connect the columns of the modules to expand/increase the number of rows in your matrix. The following diagram connects two 4 x 64 matrix modules to create a single 8 x 64 matrix by connecting the 64 columns of each module.

Figure 1. Expand the number of rows in a matrix by connecting columns.

How do I expand the number of columns?
Connect the rows of the modules to expand/increase the number of columns in your matrix. The following diagram connects two 4 x 64 matrix modules to create a single 4 x 128 matrix by only connecting the four rows of each module.

Figure 2. Expand the number of columns in a matrix by connecting rows.

How do I physically expand the matrix?
You can physically expand any matrix by using individual wires to connect the terminals of one module to the terminals of another module, but this can become very tedious as your matrix size increases. For example, to build 128 x 16 matrix out of eight 16 x 16 matrix modules would require many hours to manually connect 224 wires. National Instruments addresses this cumbersome process by offering effortless matrix expansion solutions for the SCXI-1127, SCXI-1128, and SCXI-1129 matrix modules. You can connect multiple SCXI-1127/28 modules with expansion cables to expand both row and column count. An expansion cable carries four differential (2-wire) signals. To expand the columns of the SCXI-1129, you can use the same expansion cables as the SCXI-1127/28. You can expand the row count of the SCXI-1129 with expansion plugs, which connect the columns of two adjacent switch modules. With the expansion plugs, you can create a 128 x 16 matrix in less than five minutes.

Matrix Expanstion Examples



Example 1. Creating a 16 x 128 matrix with the SCXI-1129

Solution: You have several options to achieve this matrix configuration. Here are a few:
Option 1. Using the SCXI-1334 terminal block (4 x 64 configuration)

Using the steps provided earlier, identify the number of modules you will need:

  • For 16 rows, you will need four modules (16 / 4 = 4)
  • For 128 columns, you will need two modules (128 / 64 = 2)

Therefore, you will need eight (4 x 2 = 8) SCXI-1129 modules to build the desired matrix architecture, as well as the same number of SCXI-1334 terminal blocks. For matrix expansion, you will also need six matrix expansion plugs and four matrix expansion cables. To determine this, you need to calculate how many modules you will need for both row and column count.

To reach row count, this matrix requires the connection of four modules. Because rows are being expanded, columns need to be connected, which on the SCXI-1129 is achieved through the use of matrix expansion plugs. Each matrix expansion plug connects two terminal blocks at either the top or the bottom. As shown is Figure 3, we create a 16 x 64 matrix configuration by connecting four modules in the following manner:

  • Connect the columns of modules 1 and 2 with matrix expansion plug A
  • Connect the columns of modules 2 and 3 with matrix expansion plug B
  • Connect the columns of modules 3 and 4 with matrix expansion plug C

Next, consider the number of modules necessary to reach the desired column count. Previously, we determined that this matrix requires two modules. However, because we have also expanded the rows, two does not represent the number of modules, but rather the number sets of modules. That is, in attaining row count, four modules were used to create a 16 x 64 configuration. To achieve the desired 16 x 128 configuration, we need to connect the rows of two 16 x 64 matrices. As also shown is Figure 3, we create the second 16 x 64 matrix by connecting four modules as follows:

  • Connect the columns of modules 1 and 2 with matrix expansion plug D
  • Connect the columns of modules 2 and 3 with matrix expansion plug E
  • Connect the columns of modules 3 and 4 with matrix expansion plug F

Row connection on the SCXI-1129 is accomplished using matrix expansion cables. As shown in Figure 3, we create the 16 x 128 matrix configuration by connecting two sets of four modules in the following manner:

  • Connect the rows of modules 1 with cable 1
  • Connect the rows of modules 2 with cable 2
  • Connect the rows of modules 3 with cable 3
  • Connect the rows of modules 4 with cable 4

[+] Enlarge Image
Figure 3. Use the Matrix Expansion Plugs to expand rows and Matrix Expansion Cables to expand columns.
Option 2. Using the SCXI-1336 terminal block (16 x 16 configuration)

Using the steps provided earlier, identify the number of modules you will need:

  • For 16 rows, you will need one module (16 / 16 = 1)
  • For 128 columns, you will need 8 modules (128 / 16 = 8)

For matrix expansion, you need seven matrix expansion plugs to connect the columns of all eight modules, as shown in Figure 4. The seven matrix expansion plugs create a 128 x 16 matrix, instead of the desired 16 x 128 matrix. However, this is a matter of perspective, as we stated earlier. A matrix is easily inverted, whereby rows become columns and columns become rows just by making the appropriate connections to the terminal block.

[+] Enlarge Image
Figure 4. As a way to take advantage of the robust matrix expansion plugs, you can build an inverted matrix, whereby your columns become rows and vice-versa.

Example 2. Creating a 8 x 16 (2-wire) matrix with the SCXI-1127 or SCXI-1128

Solution: Each SCXI-1127/28 requires use of the SCXI-1332 (4 x 8) terminal block.
Using the steps provided earlier, identify the number of modules you will need:

  • For eight rows, you will need two modules (8 / 4 = 2)
  • For 16 columns, you will need two modules (16 / 8 = 2)

Therefore, you will need four (2 x 2 = 4) SCXI-1127/1128 modules to build the desired matrix architecture, as well as the same number of SCXI-1332 terminal blocks. For matrix expansion with the SCXI-1127/1128, you must use the matrix expansion cables. You will need a total of six cables, which is determined in the following way. To reach row count, you will need four cables to connect the 16 columns of two pairs of SCXI-1127/1128 modules because the matrix expansion cable carries four differential signals. To reach column count, you will need only two matrix expansion cables to connect the eight rows of two pairs of SCXI-1127/1128 modules. Figures 5 and 6 below show how these four modules are connected.

[+] Enlarge Image
Figure 5. Schematic of an 8 x 16 Matrix Built with SCXI-1127/1128 Modules

[+] Enlarge Image
Figure 6. Creating an 8 x 16 matrix with the SCXI-1127/1128 modules requires the connection of four SCXI-1332 terminal blocks with matrix expansion cables as illustrated above.

Example 3. Creating a 4 x 12 (2-wire) matrix with the NI 2501 or NI 2503

Solution: Each NI 2501/2503 requires use of the TB-2606 (4 x 6) terminal block

Using the steps provided earlier, identify the number of modules you will need:

  • For four rows, you will need one module (4 / 4 = 1)
  • For 12 columns, you will need two modules (12 / 6 = 2)

Therefore, you will need two (2 x 1 = 2) NI 2501/2503 modules to build the desired matrix architecture, as well as the same number of TB-2606 terminal blocks. For column expansion with the NI 2501/NI 2503, you must manually connect each row with individual wires.

Figure 7. Schematic of a 4 x 12 Matrix Built with NI 2501/2503 Modules
18 ratings | 3.72 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).