LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

why does Xcontrol cannot read global variable?

In the block diagram of Facade.vi of Xcontrol, I read a gloable variable which is updated by another vi periodically, but the returned value in Xcontrol never change.
I changed the global variable as a shared varialbe, it works properly. So what's the different between global variable and shared variable in Xcontrol?
--------------------------------------------------------------------------------------------------------------------------
LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn
---------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 1 of 5
(3,230 Views)
up

帖子被ztyaner11在03-26-2006 07:16 PM时编辑过了

--------------------------------------------------------------------------------------------------------------------------
LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn
---------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 5
(3,213 Views)
I have only done a little work with XControls, and nothing with Shared Variables, so really this is just a guess.  XControls are "running" even in design mode.  Shared Variables can be available at design-time because they are based on an external source (perhaps an external program that is running somewhere).  Global variables are only able to be read/written in run mode.

Global Variables and Shared Variables are certainly completely different in how they operate and in what they can do.
0 Kudos
Message 3 of 5
(3,197 Views)
Yes, there does be some different between SV and Global variable, but I hope both of them can be read in Xcontrol.
--------------------------------------------------------------------------------------------------------------------------
LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn
---------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 5
(3,166 Views)
up
--------------------------------------------------------------------------------------------------------------------------
LabVIEW 8.20程序设计从入门到精通已经出版,敬请关注!
欢迎访问LabVIEW学习乐园: http://labviewstudy.blog.edu.cn
---------------------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 5
(3,134 Views)