This function is used in Python Scripting.

Description

Issues a Select-And-Operate command to set an analog value in an analog output point.

Client Permission Restrictions

Permission Type: DNP3 Management

Client access to this scripting function is blocked to users that do not meet the role/zone requirements for the above permission type. This function is unaffected when run in the Gateway scope.

Syntax

system.dnp3.selectOperateAnalog(deviceName, index, value, [variation])

  • Parameters

String deviceName - The name of the DNP3 device driver.

Integer index - The index of the object to be modified in the outstation.

Number value - The analog value that is requested (of type integer, short, float, or double).

Integer variation - The DNP3 object variation to use in the request. [optional]

  • Returns

The DNP3 status code of the response, as an integer.

  • Scope

Gateway, Vision Client, Perspective Session

Code Examples
Code Snippet
# This example sets the analog output at index 0 to the double value 3.14.

system.dnp3.selectOperateAnalog("Dnp3", 0, 3.14)
Code Snippet
# This example shows setting the analog output at index 2 to the 
# integer value 300.

system.dnp3.selectOperateAnalog("Dnp3", 2, 300)
Code Snippet
# This example shows setting the analog output at index 15 to the 
# short value 33.  The value sent in the request is converted
# for the object variation, 2.

system.dnp3.selectOperateAnalog("Dnp3", 15, 33.3333, variation=2)
Code Snippet
# This example shows setting the analog output at index 1 to the 
# float value 15.0. The value sent in the request is converted
# for the object variation, 3.

system.dnp3.selectOperateAnalog("Dnp3", index=1, value=15, variation=3)
Keywords

system dnp3 selectOperateAnalog, dnp3.selectOperateAnalog