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: 

Displaying error message when waveform graph isn't receiving data.

Solved!
Go to solution

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)?

0 Kudos
Message 1 of 9
(1,903 Views)

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!

Best regards,
GerdW


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

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?

0 Kudos
Message 3 of 9
(1,894 Views)

So there actually is data but it's not "moving" or "updating". 

0 Kudos
Message 4 of 9
(1,883 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 9
(1,873 Views)

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.

 

 

Download All
0 Kudos
Message 6 of 9
(1,866 Views)
Solution
Accepted by topic author 22119823

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?

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 7 of 9
(1,785 Views)

Thank you!

0 Kudos
Message 8 of 9
(1,776 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 9
(1,771 Views)