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

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

二维字符串数组和“替换数组”连接问题

二维字符串数组输入控件只要连接端子,在VI内所有二维字符串数组大小都为0,是BUG?

0 项奖励
1 条消息(共 12 条)
4,288 次查看

English translation of this from google is:

Two-dimensional string array input control as long as the connection terminal, in the VI all two-dimensional string array size is 0, is this a bug

0 项奖励
2 条消息(共 12 条)
4,284 次查看

Please attach the actual Vi (after making the control values shown in the picture the default). Images are not useful. Did you actually run the VI?

0 项奖励
3 条消息(共 12 条)
4,257 次查看

新手吗?

VI 执行过了吗?

0 是默认值.

 

George Zou
0 项奖励
4 条消息(共 12 条)
4,208 次查看

你好!我是新手,我用的是LabVIEW2013,今天做程序时,偶然发现二维字符串数组子集替换三维字符串数组时,只要将“二维字符串数组输入控件”连接到接线端上后, 二维字符串数组在非空时也显示0,在此程序图里的其他 非空二维字符串数组也同样显示0,不连接线端正常。数值数组旧不出现这个问题。但将它做为子VI运行正常。

0 项奖励
5 条消息(共 12 条)
4,203 次查看

3.png1.png2.png

下载全部
0 项奖励
6 条消息(共 12 条)
4,197 次查看

Whether every friend in this way, also is my LabVIEW2013 problem.,or bug.

0 项奖励
7 条消息(共 12 条)
4,196 次查看

 

If the subVI is called from the main VI and the front panel of the subVI is not open, these size indicators will NOT be updated and will remain at 0,0.

What are the execution settings of the subVI?

 

It would be so much simpler if you could attach some code!

0 项奖励
8 条消息(共 12 条)
4,194 次查看

你好!新手!下次请记得务必把你的VI贴上来!! 如果你想得到帮助.

 

LabVIEW 的 VI 包含原代码,编译后的可执行的二元码和默认值.

当 VI 被调用时,和其它编程语言的子程序一样, 只有在执行时存在于memory中. 执行过后就被释放了, 执行时赋予它值和执行的结果是不会被写入该 VI. 所以再次打开该 VI时, 你只能看到默认值.

但如果执行时, 面板是打开的, 那它就不会被释放.  执行后, 执行时赋予它值和执行的结果都会继续留在面板上.  有一种情况例外: VI 是 reentrant VI.  被调用时, 已经打开的版本不会被调用, 而是另起一个线程, 用VI的另一个拷贝.

因为你没有贴你的VI, 无法验证你的结果.

 

George Zou
0 项奖励
9 条消息(共 12 条)
4,181 次查看

这是测试文件,看看在你们的平台上有此问题吗?

0 项奖励
10 条消息(共 12 条)
4,174 次查看