LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to split all array rows into separate values.

Solved!
Go to solution

Hello there. I am quite new in this forum and in Labview and I am writing from Portugal so please be patient with my english. 🙂

I need help to make a VI that pics a 89 columns 3 row array (I already have this part) and splits each row at each time. I will explain better. I have 3 columns with numbers. The first one with latitude (in decimal degrees) the second one with the longitude (in decimal degrees) and the third one with the altitude (in meters).

In each row I have diferent values regarding the position of an object in the atmosphere.

I need no compute each value of latitude, longitude and altitude, starting in row 0 and moving to row 1, row2, and so on until reaching the end of the array.

Each value must be used separatelly.

Can anyone help me?

Thanks in advance.

Duarte

0 Kudos
Message 1 of 5
(5,293 Views)

Hi Duarte,

 

look up the LabVIEW help for "autoindexing of arrays at loop borders".

It's a basic LabVIEW feature and will surely help you to solve your current problem!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(5,290 Views)
Solution
Accepted by topic author DuarteCota

@DuarteCota wrote:

Hello there. I am quite new in this forum and in Labview and I am writing from Portugal so please be patient with my english. 🙂



I'm always impressed by the people who say something like that, often turn out to have pretty clear English!Smiley Happy

 

It sounds like you want to feed your array through a For Loop and enable Auto-indexing on your input tunnel.  That gives you each row at a time.  Then you can do what you want with the 1-D array that is inside the loop that consists of your 3 columns.  Use Index Array on that to break it up to 3 values and do your math.

 

What you are asking for is covered in the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

 

If this doesn't answer your question, then please attach your VI so we can see what you have so far and guide you from there.

 

0 Kudos
Message 3 of 5
(5,283 Views)

Thank you very much! The problem is solved! 🙂

Best to you!

Duarte

0 Kudos
Message 4 of 5
(5,276 Views)

Hello again.

Thank you very much for the tip. It helped a lot!

 

Best to you.

 

Duarte

0 Kudos
Message 5 of 5
(5,275 Views)