Auto

您所在的位置:网站首页 labview条件接线端 Auto

Auto

2024-07-05 23:47:29| 来源: 网络整理| 查看: 265

SolutionWhat is Auto-Indexing? Auto-indexing is the ability for LabVIEW to read and process every element in an array when using a For Loop or While Loop. When auto-indexing is enabled, elements of an array enter the loop and are processed one at a time.聽

Brackets on the input or output terminals of a loop indicate that auto-indexing is enabled. This is the default setting when you wire into/out of For Loops.Tip: If you enable auto-indexing on an array wired to a For Loop input terminal, LabVIEW sets the count terminal to the array size so you do not need to wire the count terminal.

聽 聽 聽 聽 聽 聽 聽 聽 聽 聽聽聽聽 聽 聽 聽 聽 聽 聽 Auto-index enabled聽 聽 聽 聽 聽 聽 聽 聽 聽 聽 Auto-index disabled Auto-Indexing and For Loops Auto-indexing is enabled by default for every array you wire to a For Loop聽because a common application of a For Loop is to process individual array elements. Disable auto-indexing if you do not need to process the elements of an array individually. When you disable auto-indexing input, the For Loop handles all the elements in the array at once, instead of handling an element per iteration.聽

Likewise, when you auto-index an array output tunnel, the output array receives a new element from every iteration of the loop. Therefore, auto-indexed output arrays are always equal in size to the number of iterations unless you select the conditional terminal mode. If you disable auto-indexing in the output tunnel, you receive the value of data from the last iteration, not the elements from every iteration.聽

Auto-Indexing and While Loops Auto-Indexing is disabled by default when wiring in or out of While Loops,聽so the wiring tunnel will be solid. If you enable auto-indexing for an array entering a While Loop, the While Loop indexes the array the same way a For Loop does. However, the number of iterations a While Loop executes is not limited by the size of the array because the While Loop iterates until a specific condition is met. Additionally, when you auto-index an array output tunnel, the output array receives a new element from every iteration of the loop.聽 Enable or Disable Auto-Indexing Input Terminals: To switch between auto-indexing and non-indexing tunnels for an input terminal, right-click a tunnel and select Enable Indexing or Disable Indexing.聽Output Terminals:聽 To enable auto-indexing,聽right-click the output聽tunnel and select聽Tunnel Mode>>Indexing. The end result of the output using this mode will be an array of size equal to the number of loop iterations.To disable auto-indexing, right-click the output tunnel and select聽Tunnel Mode>>Last Value. After the code is complete, this output will return only one element, the element from the last loop iteration.


【本文地址】

公司简介

联系我们

今日新闻


点击排行

实验室常用的仪器、试剂和
说到实验室常用到的东西,主要就分为仪器、试剂和耗
不用再找了,全球10大实验
01、赛默飞世尔科技(热电)Thermo Fisher Scientif
三代水柜的量产巅峰T-72坦
作者:寞寒最近,西边闹腾挺大,本来小寞以为忙完这
通风柜跟实验室通风系统有
说到通风柜跟实验室通风,不少人都纠结二者到底是不
集消毒杀菌、烘干收纳为一
厨房是家里细菌较多的地方,潮湿的环境、没有完全密
实验室设备之全钢实验台如
全钢实验台是实验室家具中较为重要的家具之一,很多

推荐新闻


图片新闻

实验室药品柜的特性有哪些
实验室药品柜是实验室家具的重要组成部分之一,主要
小学科学实验中有哪些教学
计算机 计算器 一般 打孔器 打气筒 仪器车 显微镜
实验室各种仪器原理动图讲
1.紫外分光光谱UV分析原理:吸收紫外光能量,引起分
高中化学常见仪器及实验装
1、可加热仪器:2、计量仪器:(1)仪器A的名称:量
微生物操作主要设备和器具
今天盘点一下微生物操作主要设备和器具,别嫌我啰嗦
浅谈通风柜使用基本常识
 众所周知,通风柜功能中最主要的就是排气功能。在

专题文章

    CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭