Go to Post An inability to communicate your ideas effectively is a handicap you would be well served to strive to overcome. - Ether [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-01-2016, 19:22
khannasusa khannasusa is offline
Registered User
FRC #5190
 
Join Date: Sep 2014
Location: NC
Posts: 11
khannasusa is an unknown quantity at this point
How to Log Message to FRC DB?

Can someone please provide an example to log a message (error or otherwise) from a VI to FRC Dashboard?

Thanks
--sk
FRC 5190
Reply With Quote
  #2   Spotlight this post!  
Unread 24-01-2016, 09:58
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: How to Log Message to FRC DB?

The errors that occur on the robot and are not explicitly handled will automatically be logged and displayed in the messages tab of the DS. They are sent to the Dashboard, but not displayed by default. If you want to customize the dashboard, I could help find the right data to pull out.

Also, for afterwards, you can see the errors by opening the log files in the log file viewer. Click on the gear above the messages and Open in the log file viewer. You can view on the graph or click to the list of messages. The filter at the top initially hides some stuff and you can choose how much info to show.

Finally, there is also a console built into the DS this year, and it displays only errors and warnings and textual stuff in a bigger window.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 24-01-2016, 12:51
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How to Log Message to FRC DB?

I haven't tried it, but I expect WPI->Utilities->SendMessageToConsole will work for things that aren't unhandled errors.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-01-2016, 13:10
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: How to Log Message to FRC DB?

Yep. That VI will send text to the console, log file, and driver station message box. Just in case someone is accustomed to debugging via print statements, let me just say that there are much better ways to debug in LV and most modern environments. So it is there for your use ... but use sparingly, such as for exceptional things that need to be logged.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 24-01-2016, 18:32
khannasusa khannasusa is offline
Registered User
FRC #5190
 
Join Date: Sep 2014
Location: NC
Posts: 11
khannasusa is an unknown quantity at this point
Re: How to Log Message to FRC DB?

Thanks for your replies. I wanted to publish some perfromance & timing data that goes to a Log File on the Roborio OR Driver Station. This is my first year Labview and I am looking for Unix Syslog equivalent. :-)
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2016, 21:35
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: How to Log Message to FRC DB?

If you want to use it on the roboRIO, look at the SystemExec node where you can execute any command you like, such as logger. Later, use ssh to view.

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:07.

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