Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. DCI transformation.

DCI transformation.

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 32.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    O
    orddie
    wrote on last edited by
    #1

    Im trying to convert a DCI that's in tenths of C under the transformation section.

    Its not converting the value when i view object details --> Last Values section.  thus far i have tried...

    return (($1 * .1) *  1.8 ) + 32;

    ((int($1) * .1) *  1.8 ) + 32

    return $1 * .1 *  1.8 + 32

    $1 * .1 * 1. 8 + 32

    Can anyone help?  the $1 is pulled from SNMP INT value.

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Problem is that NXSL does not understand ".1" notation - you have to give it as "0.1".
      Btw, you can check your scripts with nxscript command line tool:

      C:\Source\NetXMS\x64\debug>nxscript -r test.nxsl
      NetXMS Scripting Host  Version 1.2.8
      Copyright (c) 2005-2013 Victor Kirhenshtein
      
      syntax error, unexpected '.'
      
      C:\Source\NetXMS\x64\debug>
      

      Best regards,
      Victor

      1 Reply Last reply
      0
      • O
        O
        orddie
        wrote on last edited by
        #3

        right on.  That solved it!

        Thanks!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups