niSwitch Clear Interchange Warnings VI
- Updated2025-10-06
- 3 minute(s) read
Clears the list of current interchange warnings.

Inputs/Outputs
instrument handle
—
instrument handle identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology VI, the niSwitch Initialize With Options VI, or the niSwitch Initialize VI.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
instrument handle out
—
instrument handle out identifies a particular NI-SWITCH session established with the niSwitch Initialize With Topology VI, the niSwitch Initialize With Options VI, or the niSwitch Initialize VI and used for all subsequent NI-SWITCH calls.
error out
—
error out contains error information. This output provides standard error out functionality. |
Details
When developing a complex test system that consists of multiple test modules, it is generally a good idea to design the test modules so that they can run in any order. To do so, ensure that each test module completely configures the state of each instrument it uses. If a particular test module does not completely configure the state of an instrument, the instrument state depends on the configuration from a previously executed test module. Therefore, if you execute the test modules in a different order, the behavior of the instrument and therefore the entire test module is likely to change. This behavior change is generally instrument specific and represents an interchangeability problem.
You can use the niSwitch Reset Interchange Check VI to test for such cases. After you call the niSwitch Reset Interchange Check VI, the interchangeability checking algorithms in the specific driver ignore all previous configuration operations. By calling the niSwitch Reset Interchange Check VI at the beginning of a test module, you can determine whether the test module has dependencies on the operation of previously executed test modules.
To guarantee that the niSwitch Get Next Interchange Warning VI only returns those interchangeability warnings generated after calling the niSwitch Reset Interchange Check VI, clear the list of interchangeability warnings by repeatedly calling the niSwitch Get Next Interchange Warning VI until no interchangeability warnings are returned. If you are not interested in the content of those warnings, call the niSwitch Clear Interchange Warnings VI.
instrument handle
—
error in (no error)
—
instrument handle out
—
error out
—