Comfort Automation/ Security System Forums
Comfigurator 2.9.9 - 2.9.11 Beta - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Software Applications (https://www.comfortforums.com/forum-4.html)
+--- Forum: Comfigurator (https://www.comfortforums.com/forum-20.html)
+---- Forum: Comfigurator 3.x Old Versions (Archive) (https://www.comfortforums.com/forum-87.html)
+---- Thread: Comfigurator 2.9.9 - 2.9.11 Beta (/thread-1304.html)

Pages: 1 2 3 4 5


- admin - 01-29-2009

Sorry for not being clear - I suggest to use beta 2.9.11 to program so you can use the AND statement and if you need to download, convert to ccl and use the current (2.2.3) version




- wexfordman - 01-29-2009

No bother, Its my fault, I need an \"idiots guide\" Big Grin

Thanks,
Eamon



- juwi_uk - 01-31-2009

Found this whilst playing with my settings on the Control Menu in 2.9.11.

Only seems to do the following if you have Show Status ticked.

(1) Pick one of your entries (mine is a counter) in Control Menu and tick the show status checkbox (and enter user code etc).

(2) Now dropdown any  Phrase word list.  You\'ll notice the the phrase word field title highlights in blue.

(3) Now wait.  You\'ll see the phrase word field title highlight change to grey.

(4) Now click on the middle panel and voila, a floating dropdown list that isn\'t connected to the dropdown arrow anymore.  You have to exit Comfigurator  to clear it.

If you click on the floating box though you\'ll get:

Unhandled exception:
System.NullReferenceException: Object reference not set to an instance of an object.
   at VisualHint.SmartPropertyGrid.PropInPlaceList.ᜀ(Object A_0, EventArgs A_1)
   at VisualHint.SmartPropertyGrid.PropInPlaceContainer.ᜀ(Boolean A_0)
   at VisualHint.SmartPropertyGrid.PropInPlaceContainer.ᜀ(Object A_0, MouseEventArgs A_1)
   at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ListBox.WndProc(Message& m)
   at VisualHint.SmartPropertyGrid.DropDownContentListBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Had great fun trying to pin this sequence down.  With a bit of judicious clicking you can get all 4 phrase word dropdowns floating independently of Comfigurator.  Big Grin

Julian

 

 

 

 



- juwi_uk - 01-31-2009

Hi

What am I doing wrong here.  I created the response below and setup as an hourly response under miscellaneous responses.  Trouble is it carries on all night even though when i checked the NightTime flag it seems correctly set when sunset/surise settings kick in.   What am I missing?

Julian

(I\'ve cut out more of the same in here as indicated by the dots as otherwise forum message too deep!!)

If NightTime = 0 Then
    If SensorRegister OutsideTemp <= 32 Then
        Announce Outside Temperature ZERO Degrees
    End If
    If SensorRegister OutsideTemp > 32 Then
        If SensorRegister OutsideTemp <= 35 Then
            Announce Outside Temperature 1 Degrees
        End If

    End If

    .

    .

    .

    . 
    If SensorRegister OutsideTemp > 84 Then
        If SensorRegister OutsideTemp < 86 Then
            Announce Outside Temperature 20 9 Degrees
        End If
    End If
    If SensorRegister OutsideTemp = 86 Then
        Announce Outside Temperature 30 Degrees
    End If
End If
Get SensorRegister 8
Set LastOutsideTempF


 



- juwi_uk - 01-31-2009

You might want to move this to the Comfigurator thread as I accidentally created this in the wrong place.:X


- admin - 02-01-2009

The Night Time Flag is set when the time reaches sunset
If you change the time from before to after sunset, it will not set
Could this be what you did?




- juwi_uk - 02-01-2009

Hi,

No I dont believe I\'ve chamged the time,  the otnly thing I normally do is set to PC time when uploading but this is not the problem I think.

Changes to hours instead as below and it\'s still doing it:

 

[font=\"Times New Roman\"]If Hours < 22 Then[/font]

[font=\"Times New Roman\"]    If Hours > 6 Then[/font]

[font=\"Times New Roman\"]        If SensorRegister OutsideTemp <= 32 Then[/font]

[font=\"Times New Roman\"]            Announce Outside Temperature ZERO Degrees[/font]

[font=\"Times New Roman\"]        End If[/font]

[font=\"Times New Roman\"]        If SensorRegister OutsideTemp > 32 Then[/font]

[font=\"Times New Roman\"]            If SensorRegister OutsideTemp <= 35 Then[/font]

[font=\"Times New Roman\"]                Announce Outside Temperature 1 Degrees[/font]

[font=\"Times New Roman\"]            End If[/font]

[font=\"Times New Roman\"]        End If[/font]

[font=\"Times New Roman\"].[/font]

[font=\"Times New Roman\"].[/font]

[font=\"Times New Roman\"].[/font]

[font=\"Times New Roman\"]        If SensorRegister OutsideTemp > 84 Then[/font]

[font=\"Times New Roman\"]            If SensorRegister OutsideTemp < 86 Then[/font]

[font=\"Times New Roman\"]                Announce Outside Temperature 20 9 Degrees[/font]

[font=\"Times New Roman\"]            End If[/font]

[font=\"Times New Roman\"]        End If[/font]

[font=\"Times New Roman\"]        If SensorRegister OutsideTemp = 86 Then[/font]

[font=\"Times New Roman\"]            Announce Outside Temperature 30 Degrees[/font]

[font=\"Times New Roman\"]        End If[/font]

[font=\"Times New Roman\"]    End If[/font]

[font=\"Times New Roman\"]End If[/font]

[font=\"Times New Roman\"]Get SensorRegister 8[/font]

[font=\"Times New Roman\"]Set LastOutsideTempF[/font]


 




- admin - 02-01-2009

Do you mean that if the time is after 10 PM or before 6 AM, the announcement still occurs on the hourly response?



- juwi_uk - 02-01-2009

No,

The opposite,  I only want the announcement from 7am to 9 pm on an hourly response.  Surely that\'s what I\'ve setup with the  IF statements.

Oh but just to add to this you\'ll see i set the counter still outside of the main IF staements so this will still be done every hour.  Wonder if this is breaking your conditional statements?

J

 




- admin - 02-01-2009

Congratulations, You have found a bug in the creation of the action code because of the length of the branch if not Night. The code is asked to branch over too many actions

The workaround is to reduce the  branch by breaking up the code into several If Not Night ie

If NightTime = 0 Then
    If SensorRegister OutsideTemp <= 32 Then
        Announce Outside Temperature ZERO Degrees
    End If
    If SensorRegister OutsideTemp > 32 Then
        If SensorRegister OutsideTemp <= 35 Then
            Announce Outside Temperature 1 Degrees
        End If
    End If
....
...
If NightTime = 0 Then
    If SensorRegister OutsideTemp = 41 Then
        Announce Outside Temperature 5 Degrees
    End If
    If SensorRegister OutsideTemp > 41 Then
        If SensorRegister OutsideTemp <= 44 Then
            Announce Outside Temperature 6 Degrees
        End If
    End If
..
..
    If SensorRegister OutsideTemp >= 52 Then
        If SensorRegister OutsideTemp <= 54 Then
            Announce Outside Temperature 12 Degrees
        End If
    End If
End If


If NightTime = 0 Then
    If SensorRegister OutsideTemp > 75 Then
        If SensorRegister OutsideTemp < 77 Then
            Announce Outside Temperature 20 4 Degrees
        End If
    End If
.. 
  If SensorRegister OutsideTemp > 80 Then
        If SensorRegister OutsideTemp <= 82 Then
            Announce Outside Temperature 20 7 Degrees
        End If
    End If
End If
If NightTime = 0 Then
    If SensorRegister OutsideTemp > 82 Then
        If SensorRegister OutsideTemp <= 84 Then
            Announce Outside Temperature 20 8 Degrees
        End If
    End If
    If SensorRegister OutsideTemp > 84 Then
        If SensorRegister OutsideTemp < 86 Then
            Announce Outside Temperature 20 9 Degrees
        End If
    End If
    If SensorRegister OutsideTemp = 86 Then
        Announce Outside Temperature 30 Degrees
    End If
End If
Get SensorRegister 8