LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error from Create Master Instance blocking front panel

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!

 

 

Download All
0 Kudos
Message 1 of 9
(4,361 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 9
(4,345 Views)

Hy  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.

 

0 Kudos
Message 3 of 9
(4,276 Views)

 

 

0 Kudos
Message 4 of 9
(4,275 Views)

What I was telling you to do was to stop the loop when you encounter an error OR when you press the stop button.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 5 of 9
(4,257 Views)

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

0 Kudos
Message 6 of 9
(4,245 Views)
Hi Marius,

all you need to do is to program the behaviour you want to have!
And it always helps to draw your algorithm on a sheet of paper to visualize it before starting to code...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 9
(4,212 Views)

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!!

0 Kudos
Message 8 of 9
(4,192 Views)
The front panel is blocked because the error dialog is a modal dialog box. It is designed to not allow actions while it is open. You need to create a dialog of your own that has a different behavior -- however it doesn't look like you would know how to do that.

You need to go through the online tutorials. What you need to do is not hard, but you need to learn a bit first.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 9 of 9
(4,169 Views)