To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This page was made for LabVIEW beginners to show how it could perform multiple data manipulation tasks in an efficient manner.
Here is a VI that determines if an individual is allowed to drive and calculates how long he/she must wait in order to drive after drinking to avoid drunk driving based on his/her activities and country.
The VI takes into account,the sex, the weight, number of drinks, time since the last drink, and if the individual was eating in order to determine its results.
The VI also considers the country of which the individual is in, to determine whether he/she is within the national limit or not.
Description
This VI uses several case structures and select functions to allow flexibility in the code.
The user, thanks to case structures can select the country he/she is in and his/her sex to use specific parameters associated in the code to achieve a precise calculation.
The Mathematics palette is used for data manipulation.
This VI is intended to show the flexibility of LabVIEW in a fun way, when dealing and manipulating data with mathematics palette, customizing case by case dataflow to execute a task in an efficient way.
Requirement
Steps to Implement or Execute Code
Functionality
Front Panel
Additional Information or References
Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Fun application! However, the app is tricky to use with out knowing which unit of weight the code is expecting
Edited! The weight is in kg .