02-19-2015 10:52 AM
Hello guys, I've just started using labVIEW for 2 months and I'm really new to this software.
Basically, my question is what type of output will I be getting for arduino analog read? (i.e. element- single number, or array-columns of data).
For my case, I'm using LIFA (LabVIEW interface for arduino) and an IMU is connected to my arduino. The IMU has 3 axis (X,Y,Z)
Is it possible for analog read to be arrays with multiple columns or its always 1 single digit?
I can hardly get information for this and thank you very much in advance if you're able to help me
Solved! Go to Solution.
02-19-2015 03:27 PM
The LIFA toolkit has a low level Read Pin, and Read Port. The read port will read all 6 analog inputs more or less at once. I'd have to open the source to know if it is really at once or not. This is returned as an array with 6 elements.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-20-2015 10:04 AM
Hello,
If I use the low level analog read pin config, does that mean that my results will be a single element instead of an array?
Thank you.
02-20-2015 10:52 AM
Have you installed LIFA? These questions are answered as quickly as you drop down the function? Yes the single read pin returns a scalar double, and the read port returns an array of doubles.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-20-2015 08:34 PM
Hello,
Yes, I've installed LIFA in my labVIEW. The problem is I'm having my IMU connected to 2 arduino pins, (0 and 1).
Since the IMU has X, Y and Z axis, I should be expecting 6 columns of data (3 columns for XYZ acel and 3 columns for XYZ gyro).
However, as you've said previously, the analog read pin only returns me 2 columns of data.
I wasn't able to verify my results because I accidentally burnt my IMU 2 days ago and my replacement wont come until next Thursday.
I was actually hoping I could make some progress on LabVIEW before my new IMU arrives.
Thank you.
02-20-2015 10:01 PM
02-20-2015 10:24 PM