--- title: "How to Use Analog Inputs on the I/O Gateway" slug: "how-to-use-analog-inputs-on-the-io-gateway" updated: 2025-04-23T20:52:59Z published: 2025-04-23T20:52:59Z canonical: "support.tulip.co/how-to-use-analog-inputs-on-the-io-gateway" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.tulip.co/llms.txt > Use this file to discover all available pages before exploring further. # 如何在 I/O 网关上使用模拟输入端 *下面介绍如何通过 I/O Gateway 上的通用 ADC 驱动程序使用 4 个模拟输入端。* I/O Gateway Notice On November 1, 2021, Tulip will no longer sell I/O Gateway devices. Edge IO and Edge MC Devices are still available. [Learn More](https://support.tulip.co/docs/io-gateway-end-of-sale-announcement) I/O Gateway 上的通用 ADC 驱动程序用于读取每个模拟输入端的电压值。 I/O Gateway 上的通用 ADC 驱动程序用于读取网关 4 个模拟通道的电压值。 这些通道位于网关 "电源侧 "标有 "模拟输入 "的一端。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Use%20Analog%20Inputs%20on%20the%20I_O%20Gateway_116081139.png) ![How to Use Analog Inputs on the I_O Gateway_116081351.png](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Use%20Analog%20Inputs%20on%20the%20I_O%20Gateway_116081351%281%29.png){height="" width="""} 每个通道可以读取 0-24 伏的电压,有效分辨率为 9 位,这意味着它可以读取每 0.002 伏的电压变化。 每个通道的测量值都参考输入端的返回通道(-)。这意味着所有模拟电压测量都将共享同一个模拟公共端。 ## 设置通用 ADV 驱动器 要在 Tulip 中使用这些值,必须确保在设备门户的 "[驱动程序配置](/r230/docs/how-to-manage-drivers-for-a-display-device)"[页面](/r230/docs/how-to-manage-drivers-for-a-display-device)上打开 "GENERIC-ADC-VOLTAGE "驱动程序。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Use%20Analog%20Inputs%20on%20the%20I_O%20Gateway_116081751.png) ## 在触发器中使用模拟输入 要在应用程序中使用数据,有两种方法可以使用触发器捕获模拟数据。 1. 在电压变化时捕获数据 2. 请求通道的当前值 下面举例说明如何在电压变化时捕获数据: ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Use%20Analog%20Inputs%20on%20the%20I_O%20Gateway_116082534.png) - 当 "设备""模拟电压输入 "在 "此站 "输出时 - 如果 "设备输出" "通道" "=" "静态值" "整数" "1" - 那么"数据操作" "存储" 数据:"设备输出" "电压" 位置: (变量) - 然后"数据操作" "存储" 数据:"设备输出" "rawValue" 位置: (变量) - 然后"数据操作" "存储" 数据:"设备输出" "通道" 位置:(变量) 每次网关检测到电压发生变化时,该方法都会捕获以下数据: - 电压 - ADC 芯片的原始读数 - 通道 不会发送重复值。如果 GENERIC-ADC-VOLTAGE 驱动程序检测到单通道上的噪声过大,导致电压波动超过 0.002V,它就会发送数据。 下面是一个请求通道当前值的示例。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Use%20Analog%20Inputs%20on%20the%20I_O%20Gateway_116084422.png) - "按下按钮时 - "运行设备功能""模拟电压输入""获取当前读数""此站 "通道:"静态值" "整数" "1" "通道 1 读数"。 该方法将请求特定通道上的当前电压,即使读数没有变化,也会返回该值。 这对于来自压力传感器等设备的信号是必要的,因为这些设备在保持稳定电压的情况下不会向郁金香发送更新。 ## 设备示例 本节包括通过使用此驱动程序与 Tulip 配合使用的各个设备的说明。 #### Prosense 25 10-XXXXX [该设备](https://cdn.automationdirect.com/static/specs/prosensetransmitters.pdf)根据施加在传感器上的压力提供 0-10V 的输出信号。Tulip 的电压读数与压力读数之间存在简单的比例关系。该比例取决于传感器的额定测量范围。 应根据数据表中的说明对设备进行接线。为方便起见,接线图如下所示。在这种情况下,针脚 1 应提供与模拟输入针脚地线相对应的 24V 电压,针脚 2 应连接到 Tulip I/O 网关上的模拟输入针脚,针脚 3 应连接到模拟输入地线。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Use%20Analog%20Inputs%20on%20the%20I_O%20Gateway_234910370.png)