Showing results 1 to 3 of 3

Thread: Scaling Problem

  1. #1
    Join Date

    Default Scaling Problem


    I have Volt and Amp data from different IEDs via Modbus TCP and IEC 61850. My problem is:

    - I need Amp (current) scaling factor to be adjustable by user input in runtime.
      There should be some code which will pop-up input screen on pressing "Settings" button and ask user to enter CT scaling ratio and scale the variable accordingly.

    I have tried by using the VBA script :

    Dim ctRatio As Integer

    thisProeject.Variables.Item("Current L1 Node 1").RangeMax = ctRatio

    And taking "ctRatio" as user input....

    But it doesn't work. However when i am in Workspace and put the "RangeMax" property of that variable to the desired scaling ratio, It does scale it well.
    But I need "adjustable scaling factor" that the runtime should ask from the user and adjust the variable accordingly.

    Please Help ..!!!

    And many thanks.... 

  2. #2
    Join Date
    Best Answer

    Default Re: Scaling Problem

    I think this is not possible this way. You cannot change the Scaling Range via RangeMin/Max during Runtime.
    But you can use nonlinear value adjusting with VBA and there you can use another Variable to scale.

  3. #3
    Join Date

    Default Re: Scaling Problem

    Thanks! I did it using Non linear value adjustment using VBA macro...

Similar Threads

  1. Historical Trend Scaling
    By navaneet in forum zenon Service Engine Supervisor
    Replies: 4
    Last Post: 7th October 2013, 15:25
  2. Auto Scaling problem
    By zenon in forum VBA
    Replies: 6
    Last Post: 20th October 2011, 15:06
  3. User managment Problem, Snapshot relativ Problem
    By jusufs in forum zenon Service Engine Supervisor
    Replies: 4
    Last Post: 13th September 2010, 23:06
  4. y-scaling trendelement
    By affoltep in forum zenon Service Engine Supervisor
    Replies: 1
    Last Post: 22nd July 2009, 13:38

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts