.

SqNodeSegment.AnalogOut

An analog output on an SynqNet node segment.

NOTE: The data format for Slice I/O analog outputs is slice-dependent. Some values may indicate error conditions. For more information, please refer to the slice documentation.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Arguments

 
Argument Type Description
channel Long The analog input channel to read.

Type

Long

Valid Range

-32768 to 32767

Visual Basic

Syntax

Property AnalogOut(channel As Long) As Long

Sample Code

 

Example 1
' Read analog input channel 2
x = Controller.SqNode(3).SqNodeSegment(1).AnalogIn(2)

Example 2
Dim RobotIoSegment As MPXCtl.SqNodeSegment
Set RobotIoSegment = Controller.SqNode(3).SqNodeSegment(1)

' Read analog input channel 2
robotSensors = RobotIoSegment.AnalogIn(2)

Example 3
Dim RobotIoSegment As MPXCtl.SqNodeSegment
Set RobotIoSegment = Controller.SqNode(3).SqNodeSegment(1)

' Read analog input channel 3
RobotIoSegment.AnalogIn(3) = &H7FFF


Sample Application

 

C#

Syntax

 

 

Sample Code

 

See Also

AnalogIn
AnalogInCount
AnalogOutCount

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering