LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tab controls/List Arrays

Hello All.

 

I am lost! Well is my very first time with labview,and I did not know how to do one thing (or two)

 

I am doing a program to read UDP telegrams of underwater acoustic modem, this modem cound work with several beacons.

 

The NMEA sentence is $PSIMSS,,B01,A,,P,H,M,111.80,63.45,48.50,0.00,N,,*5E

 

This B01 is the id Of the Beacon.

 

 

$PSIMSSB,,B01,A,,P,H,M,111.80,63.45,48.50,0.00,N,,*5E

$PSIMSSB,,B75,A,,P,H,M,111.80,63.43,100,0.00,N,,*5E

·

·

$PSIMSSB,,Bxx,A,,P,H,M,111.80,63.43,100,0.00,N,,*5E

 

I have to make a list of the beacons in the water.

 

ManuParedes_0-1645102131383.png

 

Every second I have 2 diferent string

ManuParedes_1-1645102252348.png

 

The TP value change every second.

 

Also I would like tho make TAB with this graphic for each beacon, that must be selected with Tp code (B01,B75,Bxx) on the NMEA string

 

Best and thanks

 

I do not know if this is the right place to look for help!

 

 

0 Kudos
Message 1 of 4
(700 Views)

Hi Manu,

 


@ManuParedes wrote:

Well is my very first time with labview,and I did not know how to do one thing (or two)

 

I have to make a list of the beacons in the water.

 

Also I would like tho make …

 

I do not know if this is the right place to look for help!


Yes, it's the right place to ask for LabVIEW help! 😄

 

Until now you just wrote, what you want to achieve, but you didn't write what the problem is and where you are stuck…

(When it comes to learn LabVIEW you should take care of those Training resources offered at the top of the LabVIEW board!)

 

When you want to collect all beacon data and sort them by the beacon ID you could create an array of cluster of [beaconID, data]. Then just sort that array…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(670 Views)

Hello GerdW

 

You are right I did not explain why I am stuck!!😣

 

 

The VI works fine but I want to do a list with the Becons that come from the nmeas.

 

I did a Table EX but every time that the nmea enter on the loop i get several repeted numbers.

3 times B01, 3 times B75  and the table always grow.

 

I want to get These values only one time and if I add a new beacon the new value appear.

 

I do not know if this will be tricky or very simple, 

Best!

 

 

0 Kudos
Message 3 of 4
(644 Views)

Hi Manu,

 

with recent LabVIEW versions you could store your data (internally) in a MAP datatype, using the beacon ID as key.

(With older LabVIEW versions you can use variant attributes for the same result.)

 

This way you only store the latest data for each ID…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(626 Views)