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.

NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

如何避免case structure转换的时候读数自动清零

已解决!
转到解答

当由True 转换为False的时候,读数#1自动变为零,这是为什么呢?

case structure边框上的蓝色空心小方框上我右击鼠标选为 Use default if Unwired,因为如果不选的话VI就会出现错误,请问如何才能避免避免由True 转换为False的时候,读数#1被清零呢?谢谢。

forum2.jpgforum1.jpg

0 项奖励
1 条消息(共 3 条)
2,166 次查看
解答
已被主题作者 Jason2018 接受

Hi,

可以使用移位寄存器,或者反馈节点,或者功能全局变量,或者局部变量(慎用)。

 

Good Luck!

Xiaohui Wang

0 项奖励
2 条消息(共 3 条)
2,127 次查看

谢谢!

0 项奖励
3 条消息(共 3 条)
2,116 次查看