:RSOurce:CONNect

Flex Apps:
FlexPLL

Command Syntax

:RSOurce:CONNect

Description

Establishes a connection between FlexPLL and FlexPLL's source instrument. After setting up the connection options, use the :RSOurce:CONNect:METHod command to specify LAN, USB, or GPIB and the :RSOurce:CONNect command to make the connection. Use the :RSOurce:DISConnect command to break FlexPLL's connection to the source instrument.

Use of an *OPC? query to pause program execution while waiting for this command to execute.

Example Command Sequence

This Python example lines show the basic commands required to establish a connection via LAN.

FlexPLL.write(':RSOurce:CONNect:METhod LAN') # Use LAN
FlexPLL.write(':RSOurce:CONNect:LSERver HLAN')
FlexPLL.write(':RSOurce:CONNect:HLAN:INDEX 0')
FlexPLL.write(':RSOurce:CONNect:HLAN:PORT 4880')
FlexPLL.write(':RSOurce:CONNect:HOST "K-81160-20108"') # Specify host name
FlexPLL.timeout=20000
FlexPLL.query(':RSOurce:CONNect;*OPC?') # Make connection
s = FlexPLL.query('*IDN?') # Return source instrument identification
…
…
FlexPLL.query(':RSOurce:DISConnect;*OPC?') # Disconnect from source instrument