LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from the accelerometer

 
Is it possible to read data from the accelerometer using arduino and instrument I/O VISA. I know how to read data using MakerHub and Interface for Arduino. Do I understand correctly that for using vis, I need to write my own sketch. I'm new, maybe you have ready-made examples?
0 Kudos
Message 1 of 2
(1,986 Views)

When using an Arduino with LabVIEW, there are two main approaches that I know of:

  1. Use LINX (or LIFA, now I believe deprecated? see LINX, LIFA & Arduino). This as I understand it provides a sketch to the Arduino via the toolkit, then provides a set of VIs to read or write from various pins on the Arduino or carry out some common functions
  2. Write your own Arduino sketch, and use the Serial functions to read/write message based communication to/from LabVIEW. This is my preferred approach because the flexibility is much higher, but it does require more (up-front) effort to get it going. Once you're moving along, you'll be able to do whatever you want that is generally possible with an Arduino. It also allows processing/state machine etc on the Arduino sketch - as I understand it, LINX is more an I/O extension for LabVIEW (the Arduino acts only as a simple DAQ device).

An example of an Arduino/LabVIEW use I have can be found here:  How can i reset my Arduino through one button by Labview (note the application I show doesn't involve resetting - the thread deviated a bit from the title).


GCentral
0 Kudos
Message 2 of 2
(1,926 Views)