Go to Post I don't think it's that big of a deal if FIRST makes a few mistakes or cuts back every now and then. Personally, I'm just glad I have the opportunity to be in this program. - Crop-Circles [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-10-2012, 08:33 PM
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Error in/ Error out?

In LabView, what do the error in/error out segments do?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-14-2012, 09:49 PM
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Error in/ Error out?

they do exactly what the name implies: they carry errors.

In the event that your program throws an error, you can have other functions fail and exit on error so that they don't try operating with invalid inputs. This is especially important for files. Imagine that I open a file that doesn't exist, the system will catch this and generate an error, but the write/read operations don't know about this error, to tell them about it, you carry the error cluster to the read/write vi's that you would use, and then your file access code could tell that it had no file, and it could then take the appropriate actions or exit.

Its also useful if you want to auto reconnect on error. I set up my team's camera to continuously try to establish a connection, but if you want to do this beware, the WPILib is bugged and the error cluster is not carried internally in one of the read VI's.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #3   Spotlight this post!  
Unread 12-15-2012, 07:21 AM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,861
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Error in/ Error out?

Not that I'm doubting you, but where is it bugged? The exterminators are in the house.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 12-15-2012, 09:50 PM
MAldridge's Avatar
MAldridge MAldridge is offline
Lead Programmer
AKA: Rube #1
FRC #0418 (LASA Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Austin
Posts: 117
MAldridge will become famous soon enoughMAldridge will become famous soon enough
Re: Error in/ Error out?

I think it is in one of the read VI's, the error cluster isn't carried to any of the internal property set functions, so rather than seeing that the reference is invalid, they fail and send an error as a dialog box, which kind of defeated the purpose of having the error cluster wired into it.

If you want I can dig out that code and find out exactly what VI it was that we modified.
__________________
'Why are you a programer?' --Team Captain
'Because the robot isn't complicated enough!' --Me
Reply With Quote
  #5   Spotlight this post!  
Unread 12-15-2012, 10:06 PM
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,861
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Error in/ Error out?

If you know what type of error or what type of I/O, that would be helpful.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 12-17-2012, 11:36 AM
cdizzle cdizzle is offline
Registered User
FRC #2367
 
Join Date: Oct 2012
Location: Bay Area, CA
Posts: 42
cdizzle is an unknown quantity at this point
Re: Error in/ Error out?

Quote:
Originally Posted by Greg McKaskle View Post
If you know what type of error or what type of I/O, that would be helpful.

Greg McKaskle
Well, I was just wondering about them in general, because I've seen them used in a bunch of example programs and tutorials, and thank you!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:18 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi