LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

global variable array

Hi, I created a global vi with an array containing global variables.  But I cant index it or processed it in my other vi.  How wound one approach the "Array of global variables"?  Your input is greatly appreciated.
 
Bryan
0 Kudos
Message 1 of 3
(3,250 Views)
What do you mean by "array containing global variables"? I don't know of a way to create an array that contains globals. You can create a global that has an array of numbers, strings, clusters, etc. You index the array global in a VI just like you index any other array. You just have to make sure the global is set to read (right click and select Change to Read). If that's not the problem, could you post the global and the VI you've written to read it?
0 Kudos
Message 2 of 3
(3,244 Views)
Hi Dennis, thanks for the reply.  I created the global vi of a global variable earlier and worked fine in my other VI.  Then i went to my global vi and changed the single variable to an array of numerics.  Then i went back to my other vi and tried to index this global vi, it won't work.   My problem was I didnt re-import the global vi in my other vi after modifying the global.  Now after i do the re-import, it worked out just fine.   Thanks.
 
Happy holidays!
0 Kudos
Message 3 of 3
(3,237 Views)