12-30-2015 07:50 AM
Hello everyone!
I created a VI to open and close the TCP connection using ModBus Library with master Instance - Create Master instance. The problem is for example: when I wrote the wrong IP address, "Create master instance" sends an error(56) and the front panel gets blocked and I am constrained to close the program forced.
I want to could write after the error message appear. I can do something to repair this?
Thank you very much!
12-30-2015 08:02 AM
Use an OR so that your loop stops when you press the stop button OR an error occurs. Then you should only have the popup window show up once instead of continuously since you don't have a change to press the stop button.
01-01-2016 09:08 AM
Hy crossrulz. I do not understand how only appear popup once. I'm a beginner in labview.
My schedule runs as follows: if the connect button is true and the (WCM2x4kw_link = indicator) is false then opens connection with ip and port. (then it(open connection) gives me error, appears to me pop up, make false "connect" button and then it enters in the case when If connect button is false and the (WCM2x4kw_link=indicator) is false does nothing. (here not let me edit string (IP) and the front panel is being blocked.
Other cases:-- if the "connection" is false and the (WCM2x4kw_link) is true then closes the connection.
--if the "connection" button is true and (WCM2x4kw_link) is true then i have a event strunct.
If you want i can put the VI in Attachments.
Thank you for your time.
01-01-2016 09:09 AM - edited 01-01-2016 09:11 AM
01-01-2016 09:31 AM
What I was telling you to do was to stop the loop when you encounter an error OR when you press the stop button.
01-01-2016 09:50 AM
Now i understand. But i want that when IP is wrong to appear error and the costumer can change the ip without still run the program again. Thank you very much
01-02-2016 03:48 AM
01-02-2016 03:41 PM - edited 01-02-2016 03:41 PM
Thank you for your advise GerdW.
Maybe I'm missing something. but I do not understand why the front panel is beeing blocked and can not change anything, even to close the program.
Happy new year everyone!!
01-02-2016 06:07 PM