LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

global variables and activex

Hi,
I use Labview 5 and have a program that uses activex to work with excel. But when I add one global variable more to the program(just I add it in global.vi and even don't use it anywhere) my program doesn't work(broken wires after automation open-excel, the property nodes-application doesn't work).
Upto now I cauld't find what the problem is... So anyone that has an idea, please share with me. Any comment would be most appreciated.
og
0 Kudos
Message 1 of 4
(2,831 Views)
What have you added to the global variable?

shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 4
(2,831 Views)
I would certainly be interested in know what you added also. If it causes broken wires, then something significant has happened. It could be that, by changing the global.vi, it is no longer correctly linked to in your VI. Try relinking it and see if that helps. Also, if possible, it is best to never use global variables. They require more memory and can actually slow down your application. It is sometimes better to use property nodes with the Value property.
J.R. Allen
Message 3 of 4
(2,831 Views)
Thanks JRA for the answer. I have realized that the excel version is not compatible with that vi. I used to have the program in another computer. I transferred it to mine without any problems so that even when I opened it, lv showed no errors. But when I make any kind of changes in prog. Lv displayed broken wire. In my case it was adding a global.
So sorry for the newbie mistake.
Message 4 of 4
(2,831 Views)