:INSTrument:UDPath

Flex Apps:
FlexOTO
FlexOTO Instance:
Hardware Diagram

Command Syntax

:INSTrument:UDPath{1:8} "<path\filename>"

Where <path\filename> is a the path and file name of your instrument driver.

Where {1:8} specifies one of eight Instrument blocks that can be created on the User Instruments palette.

Description

Enters the file name, including path, of your instrument driver. Use the :INSTrument:CARGument command to enter the instrument's COM port or VISA address.

Example

This example shows the command that are required to connect your instrument driver, place the resulting Instrument block on the Hardware Diagram, and then connects the Instrument's measurement input port "A" to the switch's output port "IN 1".

hwdiagram.write(':INSTrument3:UDPath "C:\\Python\\FlexOTO\driver-power_meter.py"')
hwdiagram.write(':INSTrument3:CARGument "COM4"')
hwdiagram.write(':INSTrument3:RDRiver')
hwdiagram.write(':CONFigure:INSTrument:ACTive "Power Meter (US123456PM)"'  # place on hardware diagram
hwdiagram.write(':CONFigure:PORT:CONNect "Power Meter (US123456PM)","A","Switch (SL1:X1)","IN 1"'  # connect port A to switch port