:SWITch:RDRiver

Flex Apps:
FlexOTO
FlexOTO Instance:
Hardware Diagram

Command Syntax

:SWITch:RDRiver

Description

Runs a user switch driver. Use the :SWITch:UDPath to specify the driver's file name including path. The switch is listed on the Detected Switch Modules palette. To confirm that an switch is connected, use the :SWITch:CONNected? query. To place a Switch block on the Hardware Diagram, use the :CONFigure:SWITch:ACTive command.

Example

hwdiagram.write(':SWITch:DMEThod UDRiver')
hwdiagram.write(':SWITch:UDPath "C:\\Python\\FlexOTO\my_switch_driver.py"')
hwdiagram.write(':SWITch:CARGument "COM4"')
hwdiagram.write(':SWITch:RDRiver')
hwdiagram.write(':CONFigure:SWITch:ACTive "My Switch-2", ON'  # place on hardware diagram
hwdiagram.write(':CONFigure:PORT:CONNect "My Switch-2", "6", "N1092B-US920000003", "A"'  # connect switch port