Welcome to the new Schneider Electric Community

It's your place to connect with experts and peers, get continuous support, and share knowledge.

  • Explore the new navigation for even easier access to your community.
  • Bookmark and use our new, easy-to-remember address (community.se.com).
  • Get ready for more content and an improved experience.

Contact SchneiderCommunity.Support@se.com if you have any questions.

Close
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
84650members
353990posts

Check number of configured heads in mimic script

EcoStruxure Geo SCADA Expert Forum

Find out how SCADA systems and networks, like EcoStruxure Geo SCADA Expert, help industrial organizations maintaining efficiency, processing data for smarter decision making with IoT, RTU and PLC devices.

Solved
rlao
Lieutenant
Lieutenant
0 Likes
1
843

Check number of configured heads in mimic script

I have a navigation script that is failing on a particular ViewX client because the script is calling App.OpenWindowOnHead on Head 3, but that particular client only has 2 heads configured (one less monitor than all the other clients).

 

I'm trying to get around it by getting the script to return the max number of heads configured on the client and fall back to using that max number if the desired head number is greater than it.

 

I thought it would be a simple thing to do but I cannot find such a function at all in the help files.

 

Can what I proposed be done or is there another way to get around this issue?


Accepted Solutions
geoffpatton
Commander
Commander
0 Likes
0
836

Re: Check number of configured heads in mimic script

This should do it

 

On Error Resume Next

OpenOnHead3


If Err.Number <> 0 Then
OpenOnHead2
End IF

See Answer In Context

1 Reply 1
geoffpatton
Commander
Commander
0 Likes
0
837

Re: Check number of configured heads in mimic script

This should do it

 

On Error Resume Next

OpenOnHead3


If Err.Number <> 0 Then
OpenOnHead2
End IF