Go to Post The best way to win an award is to not try to win an award. - MrTechCenter [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 23-02-2010, 12:35
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 134
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Turning off automatic error logging in LabVIEW may improve loop timing

In LabVIEW, FRC errors are automatically logged to a file on the robot at c:\WPI_Error.txt. This is the file that you see when you click "View Log File..." on the Driver Station. If you have not configured a Cypress board for Enhanced I/O, you may be getting errors constantly logged to file. This could affect the loop rates for Teleop etc. If you think this may be a problem, you can turn off the automatic error logging. It is easy to turn off, because it is controlled by a global variable.

To turn off error logging:

1. From your project, open the Begin.vi and switch to its diagram.

2. Click back on your project, then type Ctrl-F to bring up the Find Project Items dialog.

3. Type ErrorsGlobal into the dialog and hit Enter – it should highlight the ErrorsGlobal.vi in your project.

4. Drag ErrorsGlobal.vi from your project to the diagram of Begin.vi

5. It should drop on the diagram as "log errors to file?". If it does not, click on it and choose "log errors to file?"

6. This is a global variable. Wire a FALSE constant to it. To do this you can right-click on the terminal (along the left hand side) and choose Create>>Constant. Click on the T/F constant to change it from T to F.

The way this works is that when your Begin.vi runs, the global will be set to FALSE. Then down inside FRC error VIs the global is read. If an error occurs and the global is FALSE, nothing is written to the WPI_Error.txt file. Only FRC Errors from wired error terminals get logged. In our testing, the constant logging did not detrimentally affect our loop rates. However, if you have a lot of I/O happening in your loop, this might make a difference.

Last edited by Doug Norman : 23-02-2010 at 16:09. Reason: more useful title
Reply With Quote
  #2   Spotlight this post!  
Unread 06-03-2012, 14:14
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Can Not Find ErrorsGlobal?? Re: How to turn off automatic error logging in LabVIEW

Hi All

I am trying to access ErrorsGlobal as defined in this thread, search Find Projects Items... does not find it...

Anyone else have another way I can access this VI

BTW: I tried opening brand new project, Ctr F, search did not find it also

thanx
Mark
Reply With Quote
  #3   Spotlight this post!  
Unread 06-03-2012, 16:43
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,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: How to turn off automatic error logging in LabVIEW

That is a pretty old thread.

If you open RobotMain and locate the subVI StartCommunications. Open it and look to the left side of the diagram. You will see a label comment about init error logging. It passes in a constant of T for file logging in order to open the file. If you right click on the icon and choose to Find All Instances, you should find three. The one responsible for handling most is the ErrorManagementHandleRuntimeErrors, and it passes in no parameter, defaulting to FALSE, not logging the error.

Verify that this is the way your system looks.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 08-03-2012, 16:15
mbone206 mbone206 is offline
Registered User
FRC #0223
 
Join Date: Jan 2009
Location: New Jersey
Posts: 59
mbone206 is an unknown quantity at this point
Greg M:reply to your response Re: How to turn off automatic error logging in LabVIEW

Hi Greg

I right click and Find All Instances, there are 2 not 3.

1 FPGA_ErrorManagementHandleRuntimeErrors.vi
2 WPI_DriverStationStart Communication.vi


I opened _ErrorManagement, there is a label to VI ---
'always send to Driver Station when auto error handling'
That has a constant TRUE going into VI (send to driver station)..

Is this what should be set to FALSE?

That would mean default is TRUE since I did not change this when started a new project?

Thanx
Mark
Reply With Quote
  #5   Spotlight this post!  
Unread 10-03-2012, 14:49
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,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: How to turn off automatic error logging in LabVIEW

That VI takes two Booleans I think. One for file logging on the cRIO, and one for sending to the cRIO Dianostics window. I think the default for cRIO logging is false, but you can right click and reinit to default to make sure, and you can wire a constant if you like.

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Labview logging bladetech932 General Forum 5 16-11-2009 19:18
How do I program a relay to turn on and off by pressing a button on the joystick? eweathers NI LabVIEW 4 28-01-2009 22:34
Turn off outlining? Justin M. Inventor 11 01-02-2007 09:16
How fast does the Solenoids turn on and off? Generalx5 Robotics Education and Curriculum 2 26-01-2007 01:09
Anyone know how fast the Solenoids on the MINI RC can turn on and off? Generalx5 Control System 1 06-01-2007 07:39


All times are GMT -5. The time now is 03:50.

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