You can download all niswitch examples here
.. literalinclude:: ../../src/niswitch/examples/niswitch_connect_channels.py :language: python :linenos: :encoding: utf8 :caption: `(niswitch_connect_channels.py) <https://github.com/ni/nimi-python/blob/1.4.5/src/niswitch/examples/niswitch_connect_channels.py>`_
.. literalinclude:: ../../src/niswitch/examples/niswitch_get_device_info.py :language: python :linenos: :encoding: utf8 :caption: `(niswitch_get_device_info.py) <https://github.com/ni/nimi-python/blob/1.4.5/src/niswitch/examples/niswitch_get_device_info.py>`_
.. literalinclude:: ../../src/niswitch/examples/niswitch_relay_control.py :language: python :linenos: :encoding: utf8 :caption: `(niswitch_relay_control.py) <https://github.com/ni/nimi-python/blob/1.4.5/src/niswitch/examples/niswitch_relay_control.py>`_