Discusiones sobre Productos NI

cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

arduino

alguien me podria explicar que hacen todas las pestañas que hay en la lifabase cuando abres el archivo (aparecen 10 pestañas)

1.- LIFA_BASE

2.- AFMotor.cpp

3.- AFMotor.h

4.- AccelStepper.cpp

5.-AccelStepper.h

6.-IRremote.cpp

7.-IRremote.h

8.-IRremoteInt.h

9.-LabVIEWInterface.h

10.- LabVIEWInterface

0 kudos
Mensaje 1 de 2
4.699 Vistas

Hola artorres11,

 

Gracias por utilizar los foros de discusión, cada pestaña en realidad representa un archivo de código escrito en C/C++, generalmente los archivos de código fuente contienen comentarios que describen la funcionalidad del código, por lo cuál lo más práctico sería referirnos a los comentarios de cada uno de los archivos. Te dejo una descripción a grandes rasgos, extraída de los comentarios de cada uno de los archivos,


 

 

LIFA_Base.ino:

  • LVFA_Firmware - Provides Basic Arduino Sketch For Interfacing With LabVIEW.
  • Includes, Standard includes.  These should always be included.
  • Initialize the Arduino and setup serial communication.
  • Initialize Serial Port With The Default Baud Rate
  • The main loop.  This loop runs continuously on the Arduino. It receives and processes serial commands from LabVIEW.

AFMotor.cpp y AFMotor.h:

Adafruit Motor shield library.

 

AccelStepper.h:

This is the Arduino AccelStepper library.
It provides an object-oriented interface for 2 or 4 pin stepper motors.
The standard Arduino IDE includes the Stepper library (http://arduino.cc/en/Reference/Stepper) for stepper motors. It is perfectly adequate for simple, single motor applications.

 

AccelStepper significantly improves on the standard Arduino Stepper library in several ways:

  • Supports acceleration and deceleration.
  • Supports multiple simultaneous steppers, with independent concurrent stepping on each stepper.
  • API functions never delay() or block.
  • Supports 2 and 4 wire steppers, plus 4 wire half steppers.
  • Supports alternate stepping functions to enable support of AFMotor (https://github.com/adafruit/Adafruit-Motor-Shield-library).
  • Supports stepper drivers such as the Sparkfun EasyDriver (based on 3967 driver chip).
  • Very slow speeds are supported.
  • Extensive API.
  • Subclass support.

 

AccelStepper.cpp:

  • Implements steps according to the current speed.
  • You must call this at least once per step.
  • Returns true if a step occurred.

IRremote.cpp, IRremote.h e IRremoteInt.h:

Here's a library that allows the Arduino to receive IR codes from a universal remote. The library implements the NEC IR protocol, so set up the universal remote for any NEC device (TV, DVD, VCR, ...) and the 32-bit codes should be received.

 

LabVIEWInterface.h y LabVIEWInterface.ino:

LVFA_Firmware - Provides Functions For Interfacing With The Arduino Uno.


 

 

Espero esto sea de utilidad artorres11 si necesitas alguna información adicional, no dudes en comentarlo, saludos.

David P.
National Instruments
Applications Engineer
www.ni.com/soporte
0 kudos
Mensaje 2 de 2
4.660 Vistas