The VI in this example unroutes all possible trigger routes in a PXI chassis with 3 segments and 8 trigger lines (e.g. PXI-1045, PXIe-1075, etc.). 48 trigger route combinations are possible
When this VI will attempt to clear s route that doesn't exist the generated error will be ignored and the VI will move on to the next possible trigger route configuration.
How Can I Programmatically Clear PXI Trigger Routes or Reset the Chassis?
Programmatically Routing PXI Trigger Lines Across a Multi Segment PXI Chassis in LabVIEW
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.