LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array as global variable

Solved!
Go to solution

This has me stumped.

I have looked through examples, and the forum but cannot find a solution to my problem.

 

I am writing a program that has a table of values on the front screen and various sub vi's that update the values in the table.  I also need to be able to read cell values from the table but I understand that this cannot be done.  So I am trying to use arrays to keep the values that I want to read and just write to the table when I need to.

Anyway I need to create an array that can be accessed by all VIs.  I have added an array control to the gobal.vi but when I select it in a sub vi I get a black array node and if I wire anything to it I get a broken wire.

 

I have attached the global and initializatio VIs

Download All
0 Kudos
Message 1 of 4
(4,038 Views)
Solution
Accepted by topic author Chrispbrown2255

You have added an empty array to the Global Variable. Just add a numeric control to the array in the GV, and you will get array of numerics, which you'll be able to use.

 

Thanks,

Arev

 

CTO | RAFA Solutions

 

Certified-LabVIEW-Embedded-Systems-Developer_rgb.jpgCertified-LabVIEW-Architect_rgb.jpg 

Message 2 of 4
(4,026 Views)

D'oh, thank you very much 🙂

0 Kudos
Message 3 of 4
(4,002 Views)

You are welcome!

0 Kudos
Message 4 of 4
(3,998 Views)