Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Shebarn

#1
General Support / Re: Value formatting
December 10, 2019, 10:46:10 AM
Ok, figured it out.

Used the script in the message of the event's event configuration and it worked perfect...
#2
General Support / Re: Value formatting
December 10, 2019, 09:42:54 AM
I have the same problem with voltage return as float.

My Transformation looks like this normally:

return $1/10;

(since the value returned is always 10x the actual voltage value)

But this always gives me a value of i.e. 23.500000

return format($1/10, 1, 1) gives the right value when I test it at transformation but not when the alarm is raised.

I tried Victor's solution of script:

Script Name: retvolt
Script Content: return format($event->parameters[1]/10, 1, 1);

At transformation I then put: return $[retvolt];

I get error: Error 34 in line 1: Function or operation argument is not a container

I assume I am calling the script the wrong way, but can't find examples of how to do it otherwise?
Please help.
#3
Good Day.

I have a template with 5 DCI's.
Just a few of the nodes (3 out of 150) does not support the specific OID (Voltage Check) of the DCI (See screenshot attached).

How can I exclude only this one DCI from executing on these nodes?

The other 4 still need to execute and generally I want all the DCI's in the Template.

Thank you in advance and kind regards!