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.
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.
11-26-2019 03:16 AM
Dear Experts,
I have designed a client - server model. Need your advise to fix this issue.
How it works?
1. Client.vi sends a message to server.vi
2. Upon receiving the server displays a dialog box saying "Received Successfully!
Waiting for Acknowledgement"
3. When the user clicks on "OK" button on the dialog box , it displays one more dialog box saying "Ack successful"
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".
Issue faced: 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.
11-18-2019 07:19 AM
Dear Experts,
I have developed this Multicast UDP –sender receiver code. Now I need to include a ‘send acknowledgement’ button in the server.vi. When this button is clicked it has to display a ‘message received successfully’ 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.
11-26-2019 03:32 AM
Hi Salauddin,
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.
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 State Machine, 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.
11-26-2019 05:56 AM
Dear Sir,
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.
11-26-2019 06:19 AM
Hi salauddin,
@salauddin wrote:
Issue faced: 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.
The dialog is shown each time that "no error" case is executed - that's how YOU have programmed it.
When the dialog should only show for a certain condition then you need to implement code to test for that condition!
(Btw. it's very unlikely that sending an UDP message is going to fail…)
11-27-2019 01:52 AM
Dear experts,
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".
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".
Herewith, I attach both the MulticastClient.vi and MulticstServer.vi VIs. Kindly help.
11-27-2019 07:26 AM
" if it was received successfully(i.e server end ports not open or network cable unplugged) it should throw a error"
Do you mean if it was NOT received successfully?
11-27-2019 08:55 AM
Yes, you are right. It means s NOT received successfully only. (i.e) indicating a failure.
11-27-2019 08:04 PM
I am assuming that you did not write that messy, disorganized, confusing piece of code that you attached to this request. This is a wonderful example of the advice I've given colleagues who present me with such a mess:
Bob Schor
11-27-2019 10:29 PM
Wow! Such a beautiful explanation. Thank you so much Bob_Schor for your time and kindness. I will follow.