.

SqNodeSegment.AnalogIn

An analog input on an SynqNet node segment.

NOTE: The data format for Slice I/O analog inputs 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 (read only)

Visual Basic

Syntax

Property AnalogIn(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)


Sample Application

 

C#

Syntax

 

 

Sample Code

 

See Also

AnalogInCount
AnalogOut
AnalogOutCount

 

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