Skip to content

Commit

Permalink
Updating SCEPTRE app automation (#27)
Browse files Browse the repository at this point in the history
* sceptre app closing QC on backup opc

* Update historian.mako

---------

Co-authored-by: root <[email protected]>
  • Loading branch information
mgaliar and root authored May 1, 2024
1 parent 0d1805e commit d45131f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ Do {
$no = Get-UIAWindow -Name "Wonderware Historian Configuration Editor" | Get-UIAButton -n "No"
$countDown--
} Until ($no -or ($countDown -le 0))
CheckTimeout -count $countDown
$no | Invoke-UIAButtonClick | Out-Null

Echo 'Remove old historian group HISTORIAN'
Expand Down
12 changes: 12 additions & 0 deletions src/python/phenix_apps/apps/sceptre/templates/topserver.mako
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,18 @@ Do {
} Until (($qc.ProcessName -eq "opcquickclient") -or ($countDown -le -0))
Start-Sleep -s 10

%if primary_opc==False:
# Close the Quick Client software
$qc | Send-Keys '%{F4}'
Do {
Start-Sleep -s 1
$countDown--
$close_win = Get-UIAWindow -Name "OPC Quick Client" | Get-UIAButton -n "No"
} Until ($close_win -or ($countDown -le -0))
Start-Sleep -s 2
$close_win | Invoke-UIAButtonClick | Out-Null
%endif

Echo 'Informing SCADA server that TOP Server configuration is complete...'
% for scada_addr in scada_ips:
% if scada_addr.split('.')[:-1] == opc_ip.split('.')[:-1]:
Expand Down

0 comments on commit d45131f

Please sign in to comment.