LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

start an array at 1 instead of 0

to make it easier on the user i have been asked to have an array index from 1-30 instead of 0-29 i have not found an easy way to do this yet and was wondering if anyone had any ideas.

 

I am ok with having the 0 element be blank if the user can only see and input values in 1-30.

0 Kudos
Message 1 of 3
(9,495 Views)

Hey,

 

There is no way to change the indexing of an array. You can build a dummy array with values from 1-30, or just decrement/increment the users input for your calculations. What he is seeing at the GUI does not have to be the way you work with it within the code.

 

Christian

Message 2 of 3
(9,493 Views)

As Christian Suggested you can quite easily manipulate an array to do what you want with it.

 

Here is an example that might work for you.

 

 

LabVIEW 2012
Message 3 of 3
(9,484 Views)