LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in-out in shift register: yes or no?


Omar II wrote:

With While Loops I do not use a shift register for I am of the school (stated by others above) that will test for errors at the end of each loop and react in someway to the error.

 

Now with For Loops I always use a shift register for the error cluster. Mainly to be sure any upstream errors are passed on if my For Loop does not run at least once.

 

If an array of data that I collected is empty due to an error up stream with a data read function and the For Loop was going to loop on auto indexing then the For Loop would irterate 0 times and the default error out would be no Error. Lost would be the up stream error from the read function.


That is something I did not know.  Learn something new everyday.

0 Kudos
Message 21 of 31
(1,629 Views)

Ravens can you do a simple example in which we can understand what is the better way for cluster errors? Because many persons don't speak english, so if person see I think that it's better of many words. Thanks.

 

For strange boy that tell that I ask code: NO I LEAVE ALL FREENESS TO PERSONS. I don't ask for MY PERSONAL CODE... I want onl understand with personal example of persons that help me. THERE IS VERY BIG DIFFERENCE.

0 Kudos
Message 22 of 31
(1,611 Views)

Here is a simple example.  A more complicated example would be to log the error to a file.  Perhaps handle other specific error codes.

 

My argument with not using a shift register is this.  If this simple example did not have error handling, and passed the error into the shift register, as soon as an error occurred, such as a timeout because of some strange problem with the serial communication (a message didn't get through, a cable got disconnected, a parity error) later iterations will never do anything productive because that error will prevent the reads and writes from occurring.  You won't get anything working right until you stop and restart your program.

 

I would likely put the error handling in a subVI.

 

The other alternative where a shift register would be okay is also attached in the bottom half.  It will actually work pretty much the same way as the top example, but the key thing is that the error is being specifically handled in the next iteration of the loop.

Message Edited by Ravens Fan on 02-24-2010 05:09 PM
Message 23 of 31
(1,602 Views)

Ravens FAN VERY THANKS FROM EVERY ONE.

My topic is very famous... maybe because many persons want understand.

Thanks a lot from us, you are very important person in the forum because you teach us, istead other persons that produce only a lot of comments... maybe is it a literature forum? 😉

 

Ravens if you have solution respond also to my question about FIFO saved array.

Thanks.

0 Kudos
Message 24 of 31
(1,596 Views)

 Ross Beadle to myself:

 


"

 Ben, succesful people go through phases in the carrers.

 

They start not knowing what they should or could do and they need guidance from the more experienced.

Latter they learn to do the job with only occational asistance.

Then they move into phase where they can do it independently and can occationally help others.

If the keep working they can get to the point where they can do their job AND others depend on them to get things done.

 

Unfortunately many people stop at this point thinking they have job security. To truely be valuable they should take the next step and work to train all around them such that the peers can work without assistance thereby freeing themselves to move to the next level.

"


Appreciate that Ben.

The same thing had happened with me. I was new to LabVIEW and i screwed my first project big time. I noticed that when ever my code was reviewd my PL asked me to do lots of changes in BD as well FP and i was thinking why it has to be me only?

And at that point of time i never realsed that i am being polished by some one (thats my PL) and later on stages i became a good LV programer (atleast i think so). His critics also made me to approch the problem in different directions and i am sucessful.

 

So unless and until you never try exploring certain things you will never succeed and thats the bottom line

 

 

Guru

Regards
Guru (CLA)
Message 25 of 31
(1,563 Views)

My topic is very famous... maybe because many persons want understand.

Thanks a lot from us, you are very important person in the forum because you teach us, istead other persons that produce only a lot of comments... maybe is it a literature forum? :smileywink:


Hmmm... No comments
Regards
Guru (CLA)
0 Kudos
Message 26 of 31
(1,557 Views)

Ben wrote:

 


 Ross Beadle to myself:

 

They start not knowing what they should or could do and they need guidance from the more experienced. Latter they learn to do the job with only occational asistance. Then they move into phase where they can do it independently and can occationally help others. If the keep working they can get to the point where they can do their job AND others depend on them to get things done.

 

Unfortunately many people stop at this point thinking they have job security. To truely be valuable they should take the next step and work to train all around them such that the peers can work without assistance thereby freeing themselves to move to the next level."


So just learning how to do something is just one step along the path. I have followed Ross's advise and it has served me well.

 

Sorry for the lecture. Sometimes I just have to get it out. Smiley Tongue


Ben. Its very nice. Thanks so much for such nice lecture.

Message 27 of 31
(1,555 Views)

Guru,

 

What does "PL" stand for?

0 Kudos
Message 28 of 31
(1,548 Views)
Project Lead ....
Regards
Guru (CLA)
0 Kudos
Message 29 of 31
(1,538 Views)

Ravens Fan wrote:

What does "PL" stand for?


PL- Project Leader.

 

[Edit: My network was very slow Smiley Sad ]

Message Edited by Mathan on 02-25-2010 12:32 AM
0 Kudos
Message 30 of 31
(1,535 Views)