02-17-2022 06:54 AM
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.
Every second I have 2 diferent string
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!
02-17-2022 09:04 AM
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…
02-17-2022 11:10 AM
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!
02-17-2022 01:50 PM
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…