Fault Insertion Module

Learn how to use LabVIEW to introduce faults into your SLSC system.

The hypothetical Fault Insertion Unit (FIU) module in this example has relays connecting the DAQ channels to the DUT channels as well as various fault modes. This module only does software-timed switching, which should work for tests that generate a fault at a random time or intermittently. It is made by a company named "Example Modules Inc." that uses a vendor prefix of "Example" on all properties and commands. It has two fault busses (FaultBus A and FaultBus B) with the following fault modes: NoFault, Ground, OpenCircuit, FaultBus.

Set Fault Example Code


1378


1378

//
// Hardware diagram for a single channel ("o/ o" represents a relay):
//
// ch[x]  -----o/ o-----+------ dut[x]
//                      |
// ground -----o/ o-----+
//                      |
// bus A  -----o/ o-----+
//                      |
// bus B  -----o/ o-----+
//

Set Fault Example Discussion

This example can be broken down into the following steps.

  1. This example configures physical channels, so the first step is to initialize a session for the desired physical channels.
  2. Use the session property node to get the list of all default physical channels.
  3. The outer for loop executes the command to implement the fault conditions indicated within the inner for loop.
  4. The inner for loop sets the fault as indicated by the boolean array for the given physical channels.
  5. Clear the fault states to no fault and execute the change prior to closing the session.