The Daily CLAD

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Find First Error

SercoSteveB
Active Participant

What are the contents of 'Error Array Out' following execution of the VI?

Find First Error.bmp

Find First Error Answers.bmp

Comments
LordNobady
Member

I think B

I don't know why, just a guess


Learning LabVIEW since January 2013
crossrulz
Knight of NI

B

I admit I had to look that guy up.  Basically, it takes the first non-zero error code and makes an error out of it.  But if the error in is already an error, that just gets passed along.  So the real key here is noticing that your error 2 is a warning (boolean is false).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
LordNobady
Member

I am wondering in what cases this VI is used.

Also the help file is not verry usefull on this one. I still dont know wat is exactly is doing.


Learning LabVIEW since January 2013
crossrulz
Knight of NI

LordNobady wrote:


                       

I am wondering in what cases this VI is used.

Also the help file is not verry usefull on this one. I still dont know wat is exactly is doing.


                   

Open up the VI and it will be completely clear.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
LordNobady
Member

still I don't have a clue what it is used for. ( other then make difficult questions on the daily CLAD )


Learning LabVIEW since January 2013
SercoSteveB
Active Participant

LordNobady
Member

I do have to admit I like it. one of the reasons I am coming hire is to find new functions and technics. ( and of course to spot the data flow errors so that I don't make them that often. )

the questions I know the answer of without looking it up in the help file (  or testing it out ) are the boring ones.


Learning LabVIEW since January 2013
SercoSteveB
Active Participant

LordNobady wrote:

......are the boring ones.

 

A tiny bit harsh.  I prefer the term 'less useful' myself. 

adiveppa
Member

Ans Is C

RAMESHB
Member

Answer is B.

MrStevenUND
Member

B.  Open up the VI and take a look...

mini09
Active Participant

Answer is B.

First Iteration the error is visualized and array 1 is error since the second iteration does have error the first error is repeated adian, the third iteratuion is visualized and appended all three to an array.

SercoSteveB
Active Participant

Answer: B.  Nice one LordNobady, crossrulz, RAMESHB, MrStevenUND & gnshmrthy.

Not one I have used before either.  Nice explanation crossrulz.

AuZn
Member

I haven't use this one either, but mostly because I didn't know about it. I can see where it is useful:

The are many VIs (especially in mathematics palette) that will return an error code instead of pass through an error cluster. I have always used "error code to cluster" vi to handle each individual error codes. But when there are quite a few VIs that return error codes, it is easier to use this VI to handle all the error codes together.

HB-Sirius
Member

I really didn't understand the purpose of this function and in which situation I should use the 'Find First Error' function. LabVIEW already raises the first error automatically by skipping the upstream VIs, and when we use the 'Error Merge' function, it will apply its order ??????