Example Code

To Do List - LabVIEW

Code and Documents

Attachment

Overview
This VI is a very simple to do list program.

 
Description
This example demonstrates how to program a to-do-list in LabVIEW. The list can record all the tasks and display the uncompleted tasks. When you finish a task, click the status button, and the corresponding task will be marked as completed and be concealed immediately.


Requirements

LabVIEW 2013 (or later)


Steps to Implement or Execute Code

  1. Download the correct version of the VI for your system
  2. Run List.vi
  3. Type tasks into the rows
  4. When a task is completed, click the green button to the left of it and it will be removed from the list
  5. lose the VI to stop execution. The remaining tasks are saved to the text file and will reappear the next time the VI runs.

FP.png

 

Block daigram.png

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Applications Engineer
National Instruments

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

Comments
crossrulz
Knight of NI Knight of NI
Knight of NI
on

Some comments:

  1. Your While loop never ends.  You need to have the Panel Close event case pass a TRUE to the Conditional terminal.
  2. You don't need the timeout for the Event Structure.  Remove the timeout case as well.
  3. I recommend NOT using property nodes to update your items list.  Use a local variable instead.  They are A LOT for efficient.

GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5