12-09-2020 03:36 AM
I am sending data with UDP from one VI to another. How can I display an error message when my waveform graph isn't receiving any data (If I stop sending data to the waveform graph)?
Solved! Go to Solution.
12-09-2020 03:46 AM - edited 12-09-2020 03:46 AM
Hi new number,
@22119823 wrote:
How can I display an error message when my waveform graph isn't receiving any data (If I stop sending data to the waveform graph)?
When there is no data for your graph then there is an error upstream.
Just react on that error to show the dialog!
12-09-2020 03:50 AM
Thanks for the reply. When I stop sending data there is still the data or number that was last sent. Is there a function that recognizes that the data is standing still?
12-09-2020 04:01 AM
So there actually is data but it's not "moving" or "updating".
12-09-2020 04:12 AM
Hi number,
@22119823 wrote:
When I stop sending data there is still the data or number that was last sent.
Now it's time to show your code?
How is there "still data" when you stop sending data?
@22119823 wrote:
Is there a function that recognizes that the data is standing still?
Yes, sure. But when handling errors/conditions upstream you don't need to detect "unchanged" data…
Generic recommendations:
When there is a problem in YOUR code then you should attach YOUR code.
Attach real code: we cannot debug/edit images in LabVIEW!
12-09-2020 04:23 AM
Translation for my VIs:
UDP_Sprejemanje=UDP_Receiving
UDP_Pošiljanje=UDP_Sending
So in UDP that is receiving I want to display an error message if I stop sending data from the other VI.
12-09-2020 06:06 AM
I cannot open your vi because I don't have LV2020, however I guess you can manage the Timeout error from the UDP Read function.
Can't you?
12-09-2020 07:23 AM
Thank you!
12-09-2020 08:05 AM - edited 12-09-2020 08:05 AM
Hi number,
@22119823 wrote:
So in UDP that is receiving I want to display an error message if I stop sending data from the other VI.
As I said before: handle the upstream error!