Example Code

Learning Basic Calculus

Code and Documents

Attachment

The Main_Calculus.vi is a program that achieves the following things: plots the graph of the Polynomial Function and its 1th and 2th derivatives, computes and plots the local Minima, the local Maxima, the inflections points and more operations on a polynomial function. This example shows how to manipulate strings, how to manipulate arrays, how to use Run-Time menu, how to evaluate a function and some tips about of GUI design.

DESCRIPTION

The Main_Calculus.vi is aprogram that achieves the following things:

- Plots the graph of one PolynomialFunction, within a given interval.

- Plots the graph of the 1thand 2th Derivative of the Polynomial Function.

- Computes and Plot, theintersection points with the x axis (the zeroes).

- Computes and Plot, thelocal Minima of the Function.

- Computes and Plot, thelocal Maxima of the Function.

- Computes and Plot, theinflections points of the Function.

- Computes and Plot, the intervalswhere the Function is increasing.

- Computes and Plot, theintervals where the Function is decreasing.

- Computes and Plot, theintervals where the Function is concave.

- Computes and Plot, theintervals where the Function is convex.

- Allows saving the graph in a .png image file, with the purpose of pasting or inserting in othersapplications, such as: Word, PowerPoint, Web Sites, etc.

INSTRUCTIONS

1. Run Main_Calculus.vi

2. Enter the coefficients (A,B, C, D and E) of the Polynomial Function,and then enter the interval in which the Function will be drawn. Next press Enter Key or press the Aceptar Datos Button.

3. Look at the results in the Graph. But, before you must choose one option in the menu, which is located inthe left part of the Front Panel. This menu is a radio buttons control customized.

4. You can press the Ctrl X keys to abort the program.

Note 1.- If you want to change the interval of the chart or if you want to change the coefficient ofthe Function. You must press the Ctrl F keys.

Note 2.- If you want to savethe graphic results in a image file, you can press the Ctrl G Keys.

Note 3.- You can press the Ctrl H keys to read about of the Author or about of the Institution.

GUI

http://decibel.ni.com/content/servlet/JiveServlet/download/1137-4-1156/Snapshot%20Learning%20Basic%20Calculus.PNG

____________________________________________
Carlos Calderón Córdova, Ing.
Universidad Técnica Particular de Loja
Grupo de Control, Automatización y Robótica
Escuela de Electrónica y Telecomunicaciones
Phone: (+593) 7-2570275 ext. 2650
Cell: 098663798
____________________________________________

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

Comments
cacalderon
Member
Member
on

I present them my gallery of snapshots of applications developed in
LabVIEW.
I thank to some members of LabVIEW-user groups for their contributions with regard to the design of GUIs.

LabVIEW GUI Gallery Link: http://forums.lavag.org/gallery-user8339-album77.html

____________________________________________
Carlos Calderón Córdova, Ing.
Universidad Técnica Particular de Loja
Grupo de Control, Automatización y Robótica
Escuela de Electrónica y Telecomunicaciones
Phone: (+593) 7-2570275 ext. 2650
Cell: 098663798
____________________________________________
Contributors