--- title: "如何添加 Ohaus 电子秤并将输出结果存储在变量中" slug: "how-to-add-an-ohaus-scale-and-store-output-in-a-variable-1" updated: 2026-10-22T15:32:50Z published: 2026-10-22T15:32:50Z canonical: "support.tulip.co/how-to-add-an-ohaus-scale-and-store-output-in-a-variable-1" --- > ## 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. # 如何添加 Ohaus 电子秤并将输出结果存储在变量中 ## 如何添加 Ohaus 电子秤并将测量结果存储在变量中 Ohaus Scales are also available in Player as of r318. You will need to enable the driver on the interface that you are using, otherwise the app will default to utilize the driver on Edge Devices. *以下是在 Tulip 中使用 Ohaus 电子秤的方法。* 有两种方法可以基于 Ohaus 电子秤设置触发器。 1. 按克数变化 2. 按件数变化 在Tulip中创建触发器之前,应将电子秤配置为以下任一设置。 两种方法的开始步骤均如下: 1- 在“应用编辑器”中,选择目标应用内的目标步骤。 2- 在侧边栏中,点击“触发器”旁边的加号图标。 3- 在“触发器编辑器”中点击标题,为触发器命名。 4- 设置“事件”: - 在下拉菜单中选择“设备” - 在第二个下拉菜单中选择“Ohaus-Scale” - 在第三个下拉菜单中选择“此站点” 然后,根据秤的设置修改“当”条件。 ## 重量变化 - 在第四个下拉菜单中选择“重量” ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20an%20Ohaus%20Scale%20and%20Store%20Output%20in%20a%20Variable_115646292.png) ## 按件称重 - 在第四个下拉菜单中选择“件数” ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20an%20Ohaus%20Scale%20and%20Store%20Output%20in%20a%20Variable_115646504.png) ## 所有设置 5- 条件 - 不要添加条件 6- 设置操作: - 点击“操作”行右侧的加号图标。 - 在下拉菜单中选择“数据处理” - 选择“存储” - 选择“设备输出” - 将数据输出类型设为 oz。该字段会根据数据输出类型而有所不同。 - 在变量下拉菜单中选择“新建变量”,并将新变量命名为“Item_Weight” ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20an%20Ohaus%20Scale%20and%20Store%20Output%20in%20a%20Variable_103722318.png) 在上图所示的示例中,Ohaus 电子秤测得的重量将保存在变量 Item_Weight 中。 我们还可以更进一步,利用**“表达式”**功能对秤测得的重量进行计算,并将计算结果也保存到一个变量中。 ![](https://cdn.document360.io/7c6ff534-cad3-4fc8-9583-912c4016362f/Images/Documentation/How%20to%20Add%20an%20Ohaus%20Scale%20and%20Store%20Output%20in%20a%20Variable_103722383.png)