Skip to content

Getting Data from Datamaster

awadell1 edited this page Dec 24, 2016 · 1 revision

Using getEntry

getEntry is useful when you only want to do one or more of the following:

  • Look at the details and channels logged for each datasource
  • Know where the .ld and .ldx files are located on Google Drive

Example Usage

dm = Datamaster;
getEntry('return', 1) %This will return a single datasource

% TODO: Add example output

Using getDatasource

getDatasource is what will typically be used when using Datamaster as it returns a datasource object which lets you:

  • Everything that getEntry let's you do
  • Get channel data to analyze
  • Run analysis functions like Histogram to visualize and process data

Getting the Right Data

Both of these methods use the same underlying logic to locate and return just the datasource that you want. They do this by allowing you to provided queries in the form of key-value pairs. For example to get all of the datasources with steering angle and engine rpm logged you would run the following:

dm = Datamaster;
ds = dm.getDatasource('channel', {'Steering_Angle', 'Engine_RPM'})

But what if you also only wanted the datasource logged after August 23rd 2016? Then you could run the following code:

dm = Datamaster;
ds = dm.getDatasource('channel', {'Steering_Angle', 'Engine_RPM'}, 'StartDate', '2016-08-23')

What if you only wanted to know where the .ld and .ldx files are located on Google Drive? Just replace getDatasource with getEntry:

dm = Datamaster;
ds = dm.getEntry('channel', {'Steering_Angle', 'Engine_RPM'}, 'StartDate', '2016-08-23')

Other things that can be searched for

Items Logged in Details Any field logged in Details can be searched for using Datamaster. For exampled: 'driver', 'event, 'venue', etc.

Date Range Use StartDate to specify the start of a date range and EndDate to specify the end. Note: Datamaster is inclusive, so if the datasource was logged at the StartDate or EndDate it will be included. The datetimes specified by StartDate and EndDate must be string and comply to one of the formats shown below:

  • YYYY-MM-DD
  • YYYY-MM-DD HH:MM
  • YYYY-MM-DD HH:MM:SS

Clone this wiki locally