LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want Error message at last only once

In my Vi there are total 2 types of error occurring.
5001- missing column end in column 2 and column 4(in this example)
5002- element 0(or any)in column 1 and 3 missing any of these parameters ) _ (

How can we modify so it want show errors in between while vi is running and also it shows all the errors only once in the end. I tried some ways but not working, so posting if anyone knows. Thank you. There is .xls file attached to put in file path of Vi.

Message Edited by Amy222000 on 04-29-2005 11:57 AM

Download All
0 Kudos
Message 1 of 7
(3,139 Views)
I forgot to attache one more subvi. it's in this. thanks
0 Kudos
Message 2 of 7
(3,117 Views)
Should these parameters )_( be present in every element in rows 1 and 3 or should
they be located at specific element numbers in rows 1 and 3?
0 Kudos
Message 3 of 7
(3,103 Views)
It should be only present where u see )ACU_DIA( type of element in the row. So, I have that condition that if I find any of this in the row then I check that whole row again for all 3 should be present. Actually, I found my mistake. I forgot to put condition for not to check last element in every column );. As last element always have ); but not other expressions in it that I was checking in loop, it gave me error for that too.Sorry, but I was trying it and figured it out so wanted to inform you that I have got it.

The another problem that I am facing now is, I want to check this condition for each column, even if last expression is missing in a column, I want to check other errors in that column continuous. I know I can duplicate the case in False but there must be proper way to do it. Please let me know. Thank you. I am attaching updated VI.
0 Kudos
Message 4 of 7
(3,098 Views)
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:08 PM

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

Download All
0 Kudos
Message 5 of 7
(3,079 Views)
As it was not taking my .llb file, I had to attache all vi files as .Zip file, so please save it as library when you get it. Thank you.

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

0 Kudos
Message 6 of 7
(3,061 Views)
That's a lot of code to go through for a simple problem.

When you use the insert into array, the function only adds memory in one direction. I don't know if you would call this a lab view bug, or just the way it works.

Anyways, the way I have gotten around this in the past is to transpose the array, then appended it, and transpose it back.
0 Kudos
Message 7 of 7
(3,045 Views)