LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA analog read results problem

Solved!
Go to solution

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

0 Kudos
Message 1 of 7
(3,318 Views)
Solution
Accepted by topic author yi1993

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.

0 Kudos
Message 2 of 7
(3,290 Views)

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.

0 Kudos
Message 3 of 7
(3,261 Views)

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.

0 Kudos
Message 4 of 7
(3,249 Views)

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.

0 Kudos
Message 5 of 7
(3,239 Views)
Why would you expect anything other than 2 readings when you only have 2 of the A/D pins wired? Where do you think the other readings would come from? How did you manage to burn one unit up? By misconnecting it?

Perhaps if you actually provided some details on this imu and posted to an arduino board about how it should be connected and the arduino programmed, you'd make some progress. I don't see where you have a LabVIEW problem.
0 Kudos
Message 6 of 7
(3,227 Views)
A quick google search shows that you are completely off-base for the common imu units. You don't read the analog input pins from LabVIEW. Your basic understanding of the unit and the arduino needs a total reboot.
0 Kudos
Message 7 of 7
(3,219 Views)