SignalSharkDev Class

The class “SignalSharkDev” provides access to the SignalShark device.

class nardascripting.base.signalsharkdev.SignalSharkDev(addr='127.0.0.1', port=5300, timeout=10)

SignalShark device class

property addr

The TCP/IP address of the device

connect()

Opens connection

Returns

True if successful

property connected

Returns true, if device is connected

property device_info

Returns the IDN device information if connected to device

property device_mac

Returns the MAC address of the device, if connected

disconnect()

Closes connection

property port

The TCP/IP port of the device

query(cmd='')

Sends a SCPI query command :param cmd: SCPI command as a string :return: Query result as string

send(cmd='')

Sends a SCPI command

Parameters

cmd – SCPI command as a string

Returns

True if successful

property timeout

The TCP/IP timout time