LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get data with correct array size

My VI is trying to rearrange the 2D array that I read from test.xls file, so that each function is get separated with there data in it.

Look over the test.xls file that I have attached. It has 2 columns. Both contains couple functions designated with ) and (. So, ACU_PGM is considered a function. I have rearranged the data so when ACU_PGM (or PGM is selected) the data following it is data for PGM before another function starts, which is KEY and 500 in this case. Same way for all other functions. Each column always ends by );


)ACU_PGM( )CAB_INP(
KEY WRITE
500 50
)ACU_DIA( 3
DM1 0
1010.1 )CAB_CLC(
0 WRITE
PROTECT 50
DM2 3
101.23 0
10 NA
NA )CAB_CRX(
); TEMP_1
3
0
);


The problem with my current design is I am initializing array with 0x0 size, once it gets the 1st function it gets initialized with that same size of that function array for that entire column's fnction, so it want take more elements if 2nd function in same column have more elements like in this case. ACU_DIA has 8 elements but it will only take 2 elements as ACU_PGM has 2 in it.

Please look over the Get_function.Vi only half portion. I have instructions in text in Vi also. I saw that columns are not lookin good after I submit the question so please open test.xlx file to see actual data Thank you.

Message Edited by Amy222000 on 06-02-2005 03:44 PM

Download All
0 Kudos
Message 1 of 2
(2,396 Views)
Duplicate Post
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,368 Views)