Pickering's High-Density 2 Amp PXI Multiplexers

Switching and Routing Software : What are the Benefits?

Switching and routing software helps to provide smooth and easy implementation of switching applications with minimal coding. This Pickering’s article will provide an example test sequence involving multiple switch modules, creating a complex test sequence. Further, the article will explain the benefits of using this type of software. For this article, we will use Pickering’s Switch Path Manager. But the reasons for selecting switching and routing software can be applied to other packages as well.

As electronic devices get more complex – more functions and potentially more inputs and outputs – the strategy for testing becomes more complex as well. Generally, an efficient test system design will implement switching in the system in order to share instrumentation resources and to apply power and loads.

As the Unit Under Test (UUT) becomes more complex or, for example, testing multiple UUTs in a system, the switching system will get more complex. When writing test code, there are possibilities where power could be applied to the wrong test point, short several connections together, or even connect the wrong instrument. These instances could create false failures, damage the UUT, or even damage the test system. In these instances, the test engineer should consider implementing Switching/Routing software in their test strategy.

Within small switching system configurations or when utilizing just single switch modules, the user typically applies device drivers with the provided API to control the relays. Simple CLOSE and OPEN commands with additional parameters like module number and channel number control the required relays. This is relatively simple and there are few possibilities for error.

In any test program, the user must always take care in order to avoid shorts or malfunctions even when performing simple switching tasks. If there are many relays involved, the risk of error increases significantly.

The example below of a 4-wire resistance measurement where a Digital Multimeter (DMM) and the Device-Under-Test (DUT) – noted here as Channels 1, 2, & 3 – are connected to the matrix X-axis; turning a simple switching setup into something more complex.

For the correct measurement, all four signal paths between DMM and DUT must be properly set, meaning all crosspoints on all four Y-axis’ must be closed at the correct X position. If only one is wrong, it will end up in erroneous measurements or possible shorts to adjacent DUT terminals. For another example, an additional 4-wire resistance measurement takes place on the second matrix. Two 2-pole relays are cascading both matrices by interconnecting Y-bus 1 to 4. Now, even more relays distributed on three different modules have to be programmed properly to achieve a correct measurement.

It is obvious that switching system complexity increases when multiple modules configured and interconnected with each other are carrying signals routed throughout the system. For this reason, switching and routing software like Pickering’s Switch Path Manager takes its role to manage any configuration complexity, yet remains easy to use and always takes safety aspects into account.

Switch Path Manager virtually describes any switching architecture and processes all stored project data for switching and routing at runtime. A multivendor and platform independent switch module library provides the models that are added to the project. In addition, the physical interconnections as well as the endpoints have to be defined. Endpoints are the boundary of the system where measurement and stimuli equipment and all the UUT access points are connected. By calling Point-to-Point or Point-to-Multipoint functions, the routing is processed, and the required relays are controlled to establish a signal path between these endpoints. The router will never interfere with existing routes and will find an alternate bypass or will terminate with an error message if not successful.

Continuing the first example and extending it to a 4-wire resistance measurement DMM to R2 (Channel 2) there are four routes to be established and therefore four CONNECT functions to be called. When using the device driver, 18 CLOSE commands have to be sent to achieve the same setup. Besides the increasing the number of commands, good knowledge of the system is required to understand which crosspoints have to be used.


Switch Path Manager with Auto-Routing

  • Connect Endpoints (DMM+, R2a) – to disconnect: Disconnect Endpoints (DMM+, R2a), etc.
  • Connect Endpoints (s+, R2b)
  • Connect Endpoints (DMM-, R2c)
  • Connect Endpoints (s-, R2d)

Classic Device Driver

  • Close Crosspoints (module1, y1, x1) – to disconnect: Open Crosspoints (module1, y1, x1), etc.
  • Close Crosspoints (module1, y2, x2)
  • Close Crosspoints (module1, y3, x5)
  • Close Crosspoints (module1, y4, x6)
  • Close Crosspoints (module1, y1, x29)
  • Close Crosspoints (module1, y2, x31)
  • Close Crosspoints (module1, y3, x30)
  • Close Crosspoints (module1, y4, x28)
  • Close Channel(module2, ch3) – to open: Open Channel (module2, ch3) , etc.
  • Close Channel(module2, ch4)
  • Close Crosspoints (module3, y1, x4)
  • Close Crosspoints (module3, y6, x3)
  • Close Crosspoints (module3, y7, x1)
  • Close Crosspoints (module3, y8, x2)
  • Close Crosspoints (module3, y1, x14)
  • Close Crosspoints (module3, y6, x6)
  • Close Crosspoints (module3, y7, x8)
  • Close Crosspoints (module3, y8, x12)

If frequently recurring routes are required it might be more efficient to create fixed routes instead of calling Endpoint-to-Endpoint connections. Those routes can be grouped together to make connecting and disconnecting even simpler. Each separate route holds an attribute called Auto-Route or Static-Route. Thus determining in advance whether a route selects an independent path based on the current switch status or a static one, which might fail if an existing route is blocking the way.

For the R2 4-wire measurement four single routes (R2_DMM-, R2_DMM+, R2_DMMs+, R2_DMMs-) are grouped (GRP_DMM_R2) and switched by single Connect Route Group commands:

  • ConnectRouteGroup (GRP_DMM_R2) – to disconnect: DisconnectRouteGroup(GRP_DMM_R2)

Switch Path Manager handles individual relay control as well: a relay group, which is a group of one or more relays, is called by function:

  • ConnectRelayGroup (RELAYGRP) – to disconnect: DisconnectRelayGroup(RELAYGRP)

For example, relay group RELAYGRP contains the relay channel information of crosspoints Y2/X10, Y2/X11, Y3/X10, Y3/X11.


Short Circuit Detection (SCD)

A very important aspect to consider when selecting switching and routing software, is short circuit detection. If not handled correctly, routing might create shorts in a switching system. In the configuration below, there are two switching systems interconnected via a normally closed relay. Now, with an existing route established between A and B, a second route from C to D would cause an unwanted short of the two systems. The Switch Path Manager short circuit detection (SCD) prevents this condition, returns an error message and will not switch this second route.


Another more obvious example illustrates the short circuit detection when using multi-pole relays: Two matrices are interconnected on their Y1 and Y2 lines via a 2-pole relay. The blue and green routes have already been switched. Another signal path from X1 left side and X3 right side would allow a route over one pole of the 2-pole relay. However, Switch Path Manager prevents the closing; as on the first pole the green and the blue existing routes would then inadvertently be shorted.

Signal Isolation

If the switching system’s signal leads are not isolated, and therefore used for routing, it can lead to unintended connections and therefore to short circuits. The two block diagrams below illustrate this within the following task:


establish two independent connections Y1-Y4 and Y2-Y3.


The router searches for the best-unused path and switches the crosspoints regardless of what is connected. Figure 1 below shows an unwanted connection to the DMM+ and s+ leads, this happens because the router does not know which signals are applied to given nodes. Figure 2 below shows the routes on absolute free paths without any connections to the outside world; this happens because X1, X2, X5 and X6 (used for the DMM) are defined as “isolated” in the system configuration.

               

                                                    Figure 1                                       Figure 2

 

Other Considerations

Support – the switching and routing software you select should have drivers for all of the switching modules specified. If not, is there an easy procedure to obtain them?

Software interface – the switching and routing software should easily interface with the primary software language that is being used for the overall test program. So interfacing to C, C++ and others are important.

Execution Speed – The performance speed of switching and routing software should be considered separately. Such systems will always be slower compared to optimized direct programming; this is especially true when used in small switching configurations with one or very few switch modules. However, these delays are small, in the order of milliseconds.

 

Conclusion

Complex test systems are necessary for many of today’s electronic products. Generating test code for these systems can be error prone if a complex switching system is implemented. In such instances, a switching and routing software package should be considered as an important part of the program tools implemented. There are a lot of parameters that should be evaluated before making your selection. But the end result will be shorter development and minimal risk for switching errors.

For smooth and easy implementation of switching applications with minimal coding, switching and routing software like Switch Path Manager is unbeatable compared to low-level programming. The software also offers a simple and accurate setup, further speeding up the development process.