From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data logging from an embedded system using udp trigerring

Hi,

 

I am sending a UDP packet called "start" over the network from my embedded system. Then, I would like the NI hardware to start power monitoring (and logging). Next, when I send another UDP packet called "stop", it should stop power monitoring. I have a bash script which sends UDP packets called "start" and "stop" at periodic intervals. To make the vi constantly listen to the UDP port, I added an external while loop. I am having issues with how to proceed further from there. I think I cannot nest another while loop in it, as it is becoming difficult to break out of it when I send "stop" udp packet. I have been reading on NI forums and some have suggested a event structure. I am not sure how to interface it with the while loop despite looking at some examples. Can you please help. I am attaching the vi. I am new to labview and finding it slightly different. I am using Labview 2009.

 

Thank you very much.

0 Kudos
Message 1 of 2
(2,262 Views)

Not that it will help with your specific question but...

 

By definition

 

UDP packets are NOT guarenteed to be transfered.

 

If the network stack decides it is too busy or the network decide it is too busy, ... the packet may be disacrded.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(2,254 Views)