LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Windows

I have a Main Page that connects to an ALLEN BRADLEY PLC SLC-5. I use data sockets to read and write data to and from the PLC. I also have Buttons that allow windows to pop-up and these too communicate with the PLC. My problem is when the Sub Window is in use the Main Screen FREEZES, or slows down terribly. how can i rectify this problem ? Any help is welcome. thank you..
0 Kudos
Message 1 of 2
(2,594 Views)
If a main VI will call a subVI the main VI will stop to execute code when it needs the output of the subVI. At this time the main VI will wait until the subVI completes and returns. On the front panel it seems like the main VI will freeze.

You can avoid this if you put the code of your main VI in a while and the code calling your subVI into another while loop. Besure to have no data flow between the two while loops. To transfer data between the loops, e. g. state of the activation button, use a functional or LabVIEW2 global. This way your main VI will keep on updating while your subVI will do it too.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 2
(2,594 Views)