<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with displaying pop up according to the given scenario in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994777#M1140468</link>
    <description>&lt;P&gt;" if it was received successfully(i.e server end ports not open or network cable unplugged) it should throw a error"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean if it was &lt;STRONG&gt;NOT&lt;/STRONG&gt; received successfully?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 13:26:41 GMT</pubDate>
    <dc:creator>RavensFan</dc:creator>
    <dc:date>2019-11-27T13:26:41Z</dc:date>
    <item>
      <title>Error message pops up at wrong time</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994333#M1140277</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have designed a client - server model. Need your advise to fix this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;How it works?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. Client.vi sends a message to server.vi&lt;/P&gt;
&lt;P&gt;2. Upon receiving the server displays a dialog box saying "Received Successfully!&lt;BR /&gt;Waiting for Acknowledgement"&lt;/P&gt;
&lt;P&gt;3. When the user clicks on "OK" button on the dialog box , it displays one more dialog box saying "Ack successful"&lt;/P&gt;
&lt;P&gt;4. In case, if the network cable is unplugged or the particular port is not opened on the server.vi end, it should pop up an error message saying "server not connected".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Issue faced:&lt;/STRONG&gt; This is where I am facing issue. When I run the VI, each and every time, this error message pop's up. Instead it needs to open up only when sending of data is getting failed with a timeout of 5 second. Kindly help me. Thank you. Herewith, I attach both the client.vi and server.vi.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="salauddin_0-1574759652814.png" style="width: 400px;"&gt;&lt;img src="https://ip1.i.lithium.com/a9c71ed9ad7daa9fbcf67145a84bbe4449cb5936/68747470733a2f2f6e692e6c69746869756d2e636f6d2f74352f696d6167652f736572766572706167652f696d6167652d69642f32353836353569333941383836323039413645304137382f696d6167652d73697a652f6d656469756d3f763d76322670783d343030" role="button" title="salauddin_0-1574759652814.png" alt="salauddin_0-1574759652814.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 09:16:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994333#M1140277</guid>
      <dc:creator>salauddin</dc:creator>
      <dc:date>2019-11-26T09:16:32Z</dc:date>
    </item>
    <item>
      <title>Communicating between 2 vi's using UDP</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3991912#M1143441</link>
      <description>&lt;P&gt;Dear Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have developed this Multicast UDP –sender receiver code. Now I need to include a &lt;STRONG&gt;‘send acknowledgement’&lt;/STRONG&gt; button in the server.vi. When this button is clicked it has to display a&lt;STRONG&gt; ‘message received successfully’&lt;/STRONG&gt; pop up on the client.vi end. Could anyone throw light how this can be achieved? Herewith, I attach both the server.vi and client.vi here. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2019 13:19:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3991912#M1143441</guid>
      <dc:creator>salauddin</dc:creator>
      <dc:date>2019-11-18T13:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error message pops up at wrong time</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994345#M1140283</link>
      <description>&lt;P&gt;Hi Salauddin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see the image that you attached in either of the attached VIs - the image shows some code that will always give you the "error message", because it is in the no-error state, but I don't see it present in the VIs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the topic of the VIs, they are quite complicated to read, and the tab controls don't help with this. You might consider trying to convert them into something more like a&amp;nbsp;&lt;A href="https://www.ni.com/en/support/documentation/supplemental/16/simple-state-machine-template-documentation.html" target="_blank" rel="noopener"&gt;State Machine&lt;/A&gt;, because that will probably more accurately model what you're trying to do (i.e. transition between various states). Consider using the Disabled property for controls if needed ("Disabled and Greyed Out", for example) rather than switching between tabs of similar controls.&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 18:00:28 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994345#M1140283</guid>
      <dc:creator>cbutcher</dc:creator>
      <dc:date>2025-05-13T18:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error message pops up at wrong time</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994376#M1140299</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will learn about the state machines. For now, I assure that the attached image in my question from the MultiCastClient.vi attached. I once ensured it myself and I have uploaded the correct file. Your help will be really appreciated. Kindly help me, Sir.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 11:56:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994376#M1140299</guid>
      <dc:creator>salauddin</dc:creator>
      <dc:date>2019-11-26T11:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error message pops up at wrong time</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994382#M1140300</link>
      <description>&lt;P&gt;Hi salauddin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/639507"&gt;@salauddin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;STRONG&gt;Issue faced:&lt;/STRONG&gt; This is where I am facing issue. When I run the VI, each and every time, this error message pop's up. Instead it needs to open up only when sending of data is getting failed with a timeout of 5 second.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The dialog is shown each time that "no error" case is executed - that's how YOU have programmed it.&lt;/P&gt;
&lt;P&gt;When the dialog should only show for a certain condition then you need to implement code to test for that condition!&lt;/P&gt;
&lt;P&gt;(Btw. it's very unlikely that sending an UDP message is going to fail…)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 12:19:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994382#M1140300</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2019-11-26T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Issue with displaying pop up according to the given scenario</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994677#M1140429</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
&lt;P&gt;I send a message from MulticastClient.vi to MulticstServer.vi. Upon receiving a message, the MulticstServer.vi pop ups a message "received successfully, send acknowledgement". When OK button is clicked, I receive a popup on the MulticastClient.vi end saying, "Acknowledgement successful".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to include a code where after a timeout of 5 seconds of sending the message from MulticastClient.vi and if it was received successfully(i.e server end ports not open or network cable unplugged) it should throw a error message saying, "server not connected".&lt;/P&gt;
&lt;P&gt;Herewith, I attach both the&amp;nbsp;MulticastClient.vi and MulticstServer.vi VIs. Kindly help.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 07:52:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994677#M1140429</guid>
      <dc:creator>salauddin</dc:creator>
      <dc:date>2019-11-27T07:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with displaying pop up according to the given scenario</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994777#M1140468</link>
      <description>&lt;P&gt;" if it was received successfully(i.e server end ports not open or network cable unplugged) it should throw a error"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean if it was &lt;STRONG&gt;NOT&lt;/STRONG&gt; received successfully?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 13:26:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994777#M1140468</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2019-11-27T13:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with displaying pop up according to the given scenario</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994810#M1140489</link>
      <description>&lt;P&gt;Yes, you are right. It means s &lt;STRONG&gt;NOT&lt;/STRONG&gt; received successfully only. (i.e) indicating a failure.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 14:55:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994810#M1140489</guid>
      <dc:creator>salauddin</dc:creator>
      <dc:date>2019-11-27T14:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with displaying pop up according to the given scenario</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994965#M1140568</link>
      <description>&lt;P&gt;I am assuming that you did&amp;nbsp;&lt;U&gt;not&lt;/U&gt; write that messy, disorganized, confusing piece of code that you attached to this request.&amp;nbsp; This is a wonderful example of the advice I've given colleagues who present me with such a mess:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Step 1 -- delete the existing code (and all copies of it).&lt;/LI&gt;
&lt;LI&gt;Step 2 -- break out your favorite Word Processor (Word, LaTeX, whatever) and write a one-two page document describing&amp;nbsp;&lt;U&gt;what&lt;/U&gt; you want to do.&amp;nbsp; Describe how things start out, what starts things going, what signals go back and forth, what causes things to change, and what ultimate end(s) are anticipated.&lt;/LI&gt;
&lt;LI&gt;Note that the document should focus on "what", not "how".&amp;nbsp; If there is a critical methodology (such as a&amp;nbsp;&lt;U&gt;requirement&lt;/U&gt; to use, say UDP as a communication mechanism (instead of TCP, Network Streams, HTTP, or something else), that's OK, but don't focus too much on "how".&lt;/LI&gt;
&lt;LI&gt;If things are taking place in a sequence ("first initialize, then do this, then wait for that, then respond such and so"), a good model for this might be a State Machine, perhaps implemented either using something like the Queued Message Handler (using the NI Template) or the JKI State Machine (obtained from the NI Tools Network).&lt;/LI&gt;
&lt;LI&gt;Share your Document with your colleagues, your boss, someone who can follow a&amp;nbsp;&lt;U&gt;logic&lt;/U&gt; argument (doesn't need to know LabVIEW, because your Document shouldn't mention LabVIEW, just "what" you are trying to do).&lt;/LI&gt;
&lt;LI&gt;Once you have a&amp;nbsp;&lt;U&gt;simple&lt;/U&gt; model based on a &lt;U&gt;simple&lt;/U&gt; Design, start coding.&amp;nbsp; Do it one State at a time, testing as you go.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Bob Schor&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 02:04:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994965#M1140568</guid>
      <dc:creator>Bob_Schor</dc:creator>
      <dc:date>2019-11-28T02:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with displaying pop up according to the given scenario</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994980#M1140570</link>
      <description>&lt;P&gt;Wow! Such a beautiful explanation. Thank you so much Bob_Schor for your time and kindness. I will follow.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 04:29:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Error-message-pops-up-at-wrong-time/m-p/3994980#M1140570</guid>
      <dc:creator>salauddin</dc:creator>
      <dc:date>2019-11-28T04:29:34Z</dc:date>
    </item>
  </channel>
</rss>

