______
I understand your app pretty well. I have helped couple of my clients build similar SCADA apps.
I took a look at your example VI. First of all, you're not using LabVIEW-DSC but just LabVIEW. This will make things difficult. Though you can use DataSocket connections to talk OPC, the best approach would be to use LabVIEW-DSC and Tags.
Please study the Tag architecture in detail. There's lot of info' in the LabVIEW-DSC manuals and Online Help.
If you have LabVIEW-DSC installed, go to Tools>>Datalogging & Supervisory Control>>Tag Configuration Editor. Once the Tag Configuration Editor (TCE) is launched, you can invoke the Wizard and browse all OPC
Servers on your machine.
Browse to your LookoutOPCServer and select the Items you need, including the Poll and CommFail. You'll later toggle the Poll Tag whenever you have to dial-out to a PLC. CommFail, like I said earlier, will give you the status of communication.
Once you have these Tags generated (and the SCF file created), you start writing your VI(s). First step would be to toggle the Poll member of the PLC you want to call. Next, you wait and check for the CommFail Tag. If all is well, you start reading and writing to the rest of the Tags. Use the HMI-Wizards to generate the code.
When you're done reading/writing, toggle the Poll Tag for the next PLC and repeat the same process.
Hope this helps..
Regards,
Khalid 🙂
______