[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Binary to multistate meta point  XML
Forum Index » User help
Author Message
matthew.sellars

Initiate
[Avatar]

Joined: 14/04/2012 23:53:13
Messages: 5
Location: San Francisco, CA
Offline

I would like to use a binary and a numeric as context points in a multistate meta point.
My problem is with the binary context point. The statement if(n.value==1.0) works for the numeric point but if(b.value==true) does not work for the binary.
I have tried different combinations of true, false, 1, 0, 1.0. 0.0 with no change.
Writing “return k” and clicking the Validate Script button yields the message Success. result=true but using if(k.value==true) does not work.

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

Works for me. In fact, both of these do:



... and:


Best regards,
Matthew Lohbihler
matthew.sellars

Initiate
[Avatar]

Joined: 14/04/2012 23:53:13
Messages: 5
Location: San Francisco, CA
Offline

I have been experimenting with Virtual data points as banging the fan on and off was slow.
If I switch the context variables in this meta point it will work.
Changing the state of the binary variable has no effect.
[Thumb - Screenshot - 05142012 - 09:05:59 AM.png]
 Filename Screenshot - 05142012 - 09:05:59 AM.png [Disk] Download
 Description result should be 1
 Filesize 28 Kbytes
 Downloaded:  43 time(s)

[Thumb - Screenshot - 05142012 - 09:16:02 AM.png]
 Filename Screenshot - 05142012 - 09:16:02 AM.png [Disk] Download
 Description fanStstue should be 1
 Filesize 19 Kbytes
 Downloaded:  41 time(s)

This message was edited 8 times. Last update was at 17/05/2012 19:44:32

matthew.sellars

Initiate
[Avatar]

Joined: 14/04/2012 23:53:13
Messages: 5
Location: San Francisco, CA
Offline

I installed ScadaBR alongside Mango M2M on my server and the bug does not exist in ScadaBR.

ScadaBR works correctly.

I still cannot use binary context points in Mango.

return binaryPoint.value; fails on my fresh Mango install.
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1847
Offline

As i said, it works for me. What version are you using?

Best regards,
Matthew Lohbihler
 
Forum Index » User help
Go to:   
Powered by JForum 2.1.9 © JForum Team