|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |