Go to Post Support an awesome scholarship fund for deserving students by buying sweet CAH expansion packs? Heck yeah. - Cothron Theiss [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, 19:39
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

This is the same as another post I made - just a more useful title.

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 (like vision), this might make a difference.
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
How to turn off automatic error logging in LabVIEW Doug Norman NI LabVIEW 4 10-03-2012 14:49
Intra-Loop Timing Advice Ziaholic NI LabVIEW 3 16-02-2010 20:26
Running / Turning off a Compressor robotic321 NI LabVIEW 3 15-02-2010 16:30
Labview logging bladetech932 General Forum 5 16-11-2009 19:18
Victor turning off zeep25 Electrical 10 23-02-2004 18:35


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

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