From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
按照用户自定义时间间隔,不断轮询字符串输入控件的值,知道字符串长度达到预期条形码的长度。
1. 为字符串控件创建一个属性节点。
2. 为属性UpdtWhileTyping连线到布尔真常量,这样当条形码扫描仪扫描字符时,字符串输入控件的值就能自动更新。这个属性类似于字符串对象右键快捷菜单中的“键入时刷新 ”。
3. 在While循环中,为字符串输入控件创建一个属性节点,寻则属性“值”,连线该值至字符串长度VI,比较其长度,直到满足条形码的大小。
4. 当字符串长度与条形码大小相等时,退出循环,输出字符串的值。
范例参考下面链接。其他的链接提供了更多有关条形码扫描仪的信息。
|