Skip to content Skip to navigation Skip to collection information

OpenStax_CNX

You are here: Home » Content » Toma de decisiones en un VI » VI Ejercicio con Formula Node

Navigation

Recently Viewed

This feature requires Javascript to be enabled.
 

VI Ejercicio con Formula Node

Module by: Juan Martínez. E-mail the author

Based on: Formula Node Exercise VI by National Instruments

Summary: In this exercise, the objective is to use the Formula Node in a VI. Complete the following steps to build a VI that uses the Formula Node to perform a complex mathematical operation and graphs the results.

Exercise 1

1.a) Panel Frontal

  1. Abrir un VI en blanco y construir el panel frontal mostrado en la figura 1.
    Figura 1
    Figura 1 (formulaexer.png)

1.b) Diagrama de Bloques

  1. Construir el diagrama de bloques mostrado en la figura 2.
    Figura 2
    Figura 2 (formulaexerbd.png)
    1. Colocar en el diagrama de bloques el Formula Node, situado en la paleta Functions>>All Functions>>Structures.
    2. Crear el terminal de entrada x haciendo clic con el botón derecho del ratón sobre el borde izquierdo y seleccionando Add Input en el menú contextual. Escribe x en la caja que aparece.
    3. Crear los terminales de salida y y a haciendo clic con el botón derecho del ratón sobre el borde izquierdo y seleccionando Add Output en el menú contextual. Escribir y y a respectivamente, en las cajas que aparecen. Hay que crear terminales de salida para las variables temporales como aa.

      Nota:

      Cuando se crea un terminal de entrada o de salida, se tiene que usar para la variable el mismo nombre que el que se ha usado en la ecuación. Los nombres de variable son sensibles a mayúsculas y minúsculas.
    4. Escribir las siguientes ecuaciones en el Formula Node, donde ** es el operador exponencial. Consultar la ayuda de LabVIEW para una mayor información sobre la sintaxis de los Formula Node.
      
      		    a = tanh(x) + cos(x);
      		    y = a**3 + a;
      		  
    5. Completar el diagrama de bloques según se muestra en la figura 2.
  2. Salvar el VI como Ejercicio Formula Node.vi en el directorio C:\Exercises\ LabVIEW Basics I.

1.c) Ejecutar el VI

  1. Mostrar el panel frontal y ejecutar el VI. El gráfico muestra la representación de la ecuación y=f3x+fx y f x 3 f x , donde fx=tanhx+cosx f x x x . Durante cada vuelta del bucle, el VI divide el terminal de contaje entre 15.0. El cociente está unido al Formula Node, que calcula el valor de la función. El instrumento virtual dibuja el array como un gráfico.
  2. Cerrar el VI.

Collection Navigation

Content actions

Download:

Collection as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add:

Collection to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks

Module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

A lens is a custom view of the content in the repository. You can think of it as a fancy kind of list that will let you see content through the eyes of organizations and people you trust.

What is in a lens?

Lens makers point to materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

Who can create a lens?

Any individual member, a community, or a respected organization.

What are tags? tag icon

Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

| External bookmarks