Go to Post Leave it to CD to misconstrue a joke this badly. - connor.worley [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 14-01-2015, 19:05
FredyK200 FredyK200 is offline
Registered User
FRC #0240
 
Join Date: Jan 2015
Location: Jefferson High
Posts: 2
FredyK200 is an unknown quantity at this point
Error In/Error Out

In the pre loaded code for labview (We're using Mecanum w/Arm), there's an error in and error out connected to each other. I was wondering if that meant I didn't need to wire anything to an error out, as if say the connected error in and error out was universal.
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2015, 19:54
Greg McKaskle Greg McKaskle is online now
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
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

In LabVIEW, error in and out is how errors are handled. The errors are data, specifically, a cluster of a Boolean, number, and string. If an error happens in one node, it passes that out to its caller.

If the caller if the node wants to check the error, it can access the values and write code to deal with it. Or the caller can string the error out of one node into another node. This makes the second node able to see the input error. Typically, it decides not to do anything except pass the error through. This error propagation is similar to how errors are thrown in other languages, except that the error is thrown forward instead of backwards.

To your original question, you generally do not need to use errors wires between nodes since the WPILib elements actually duplicate the errors into the reference wire as well. And if you get an error and don't wire it to anything, it will show up on the DS -- this is true on the roboRIO, but the simulator will put up a dialog telling you instead.

Greg McKaskle
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 08:02.

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


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