Example Code

Fantasy Football Value-Based Drafting VI using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This LabVIEW Project allows you to create a Value- Based Draft guide and use it during a draft. 

 

Description

This LabVIEW Project allows you to create a Value- Based Draft guide and use it during a draft. After Runing the code, you can configure the scoring settings, and select the number of starting players, at last, it will gather the data from the selected source, and uses it to calculate VBD rankings. The program is built as a state machine, with a corresponding tab for each state. The state pictured below takes the settings that have been entered and uses them to calculate the rankings based on the projections it gets from either ESPN or FantasyPros.

 

Requirements

  • LabVIEW 2012(or compatible)

Steps to Implement or Execute Code

  1. After hitting run, configure the scoring settings for your league. The default values are set to a standard scoring for most leagues.
  2. The next page in the tab control allows you to select the number of starting players, bench players, and the number of teams in the league.
  3. The next page allows you to review all settings and go back to edit if there are any issues as well as choose if you want to get projected statistics from ESPN or FantasyPros.
  4. The program will gather the data from the selected source, and uses it to calculate VBD rankings. The position ranks will be shown after the calculations are done, as well as an overall rankings, and the number of players drafted of each position in the first 10 rounds. The number is used as the baseline for the value scoring.
  5. The Drafting page allows the user to drag players from “Undrafted” to lists if they have been already drafted by you or others, and another for players you want to keep an eye on. Based on your drafted players, you also will be shown what positions you need in order to fill up your starting roster with “Players Needed”
  6. The final page allows you to review your team. It also gives you the number of points that your team has in comparison to the average amount of points for each team in your league.

Additional Information or References

Front Panel

FP.JPG

 

 

 

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.