Hello All,
Is there any VBA command available to showing as "Loading Please Wait" on a mimc?
While this message is displayed user should not be able to send any command from mimic but should be able to see the mimc.
Thanks & Regrads,
Nitesh Dongare
Hello Nitesh,
I am not sure if there are any built in way to do this or not. What VBA command are you running?
Will you have method to know if the command is still running or already run complete?
Thanks,
Kantha
Hello,
User is running a set of VBA commands at the start of VBA code they want to display "Loading Please wait" message and at the end of VBA code message will be withdrawn.
The SCADA used by the user in the past (Movicon) was having a VBA Method which can display loading message and doesn't allow the user to send any command till that method was running from VBA code. User is looking for the same VBA method or any other alternative to implement the same function.
Thanks & Regards,
Nitesh Dongare
Hi,
a simple method is to open a modal mimic at the beginning of your method
and to close it when finished
Private Sub YourMethod()
Dim modalMimic As Mimic
Set modalMimic = Mimics.Open("modalMimic", "")
'...Your code here...
modalMimic.Close
End Sub
Hello Nitesh,
The customer has to foresee a way out in case something is going wrong during the VBA code taking time.
I guess the modal mimic has no close button and prevent you of doing anything else. He could be stuck.
In some circumstances, PcVue would ask for the project to exit (600 seconds internal timeout)
Regards
Edouard
Hi,
Calling the mimic from VBA could be an alternative solution but is not as per the requirement. Customers need to view the process while the VBA code is getting executed they just want to disable the commands. Poping up a mimc will not allow monitoring the process.
Thanks & Regards.
Nitesh Dongare
Hi,
The modal mimic is a small one, only displaying "In progress".
You still can monitor the full screen window in the background but have no access to any actions.
Regards,
Edouard
HI Nitesh,
Alternative way:
- Create a Text variable in command. Make an animation on the mimic template to display the Text value
- Create a Bit in command (i.e. GENERAL.INTERLOCK) and use this bit as an Interlocking on every animation having an operator action
- In your VBA at the beginning, set the Text value to "In progress". Now it is displayed.
- In your VBA at the beginning, set the Interlocking bit. Now nobody can send any command.
- In your VBA at the end, reset the Text value and the Interlocking bit
But, using a modal popup, is the easiest way. It must be small and positioned in a way the operator can still see the process.
Anyway, whatever the way used, as said by Edouard "The customer has to foresee a way out in case something is going wrong during the VBA code taking time."
Nico


