Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Using parameters in a script

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Using parameters in a script
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
Kirk sbeadle Kirk
308
AndrewScott
Admiral AndrewScott
97
BevanWeiss
Spock BevanWeiss
91
AdamWoodlandToo
Lt. Commander AdamWoodlandToo
37
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Solved
GiovanniVolpe
Crewman GiovanniVolpe
Crewman

Posted: ‎2025-04-13 03:32 AM

0 Likes
5
495
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-13 03:32 AM

Using parameters in a script

Hello everyone!

 

This is my Mimic:

GiovanniVolpe_0-1744539918756.png

 

This is my script (called by pick action):

GiovanniVolpe_1-1744539944668.png

 

Debug.....

GiovanniVolpe_2-1744539984652.png

 

 

Indeed: "Mimic.Parameters.Target" Object needed

 

GiovanniVolpe_3-1744540273483.png

 

 

Where am I going wrong?

Labels
  • Labels:
  • Scripting
  • ViewX
  • Tags:
  • english
  • scada
  • SCADA app
  • SCADA software
  • SCADA tutorial
  • Telemetry and SCADA
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2025-04-22 11:45 PM

0 Likes
0
333
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-22 11:45 PM

The example script states:

Set test = Mimic.Parameters
something = test.Point.CurrentValue

That parameter is now in your variable 'something'.

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 5
geoffpatton
Captain geoffpatton
Captain

Posted: ‎2025-04-14 06:21 AM

0 Likes
2
462
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-14 06:21 AM

Your Pictures are not showing. I would try different file formats or maybe lower resolution.

Reply

Link copied. Please paste this link to share this article on your social media post.

GiovanniVolpe
Crewman GiovanniVolpe
Crewman

Posted: ‎2025-04-15 01:08 AM

In response to geoffpatton
0 Likes
1
434
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-15 01:08 AM

I'm so sorry.

I'll try again: my Mimic

 

GiovanniVolpe_0-1744704437224.png

 

My code

GiovanniVolpe_1-1744704463859.png

 

 

Reply

Link copied. Please paste this link to share this article on your social media post.

geoffpatton
Captain geoffpatton
Captain

Posted: ‎2025-04-15 10:18 AM

0 Likes
0
409
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-15 10:18 AM

Interestingly your other picture are now showing.

I believe you need to put the "Mimic.Parameters.Target.FullName" in Quotes.

If it helps here is an example of where I have used FindObject with GetOPCValue. I think GetOPCValue is used so the code can work from a instance of a template.

Function SetPump2AlarmReset()
Dim objCTLcheck
Dim iResponse

Set objCTLcheck = Server.FindObject(Server.GetOPCValue("..IO.Config.Setpoints.Pump 2 Alarm Reset.FullName"))
If objCTLcheck.CheckAccess("CTL") = True Then
Server.SetOPCValue "..IO.Config.Setpoints.Pump 2 Alarm Reset.CurrentValue", 0
Else
iResponse = MsgBox("You do not have Control Privileges to Control " + Server.GetOPCValue("..Name") + "." , vbQuestion + vbOKCancel + vbDefaultButton2, "Station Control")
End If
End Function

 

I am not sure you are trying to get a database Object information though since I do not see anything in your database tree called Mimic.

Reply

Link copied. Please paste this link to share this article on your social media post.

GiovanniVolpe
Crewman GiovanniVolpe
Crewman

Posted: ‎2025-04-16 01:54 AM

In response to GiovanniVolpe
0 Likes
0
384
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-16 01:54 AM

I would like to access the parameters defined for MIMIC as shown in this example

Reply

Link copied. Please paste this link to share this article on your social media post.

sbeadle
Kirk sbeadle Kirk
Kirk

Posted: ‎2025-04-22 11:45 PM

0 Likes
0
334
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2025-04-22 11:45 PM

The example script states:

Set test = Mimic.Parameters
something = test.Point.CurrentValue

That parameter is now in your variable 'something'.

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of