Announcement

Collapse
No announcement yet.

ERROR McsXap - SetBSCData Line 0 L'opration arithmtique a pr

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ERROR McsXap - SetBSCData Line 0 L'opration arithmtique a pr


  • #2
    I took some guesses as to what it may be. It was updated with V3.0.0.17

    Comment


    • #3
      thanx for answer.
      I wil tried this.

      Is possible to synchronise my gaz counter with xap value counter which as Athis value:17501991776930
      my real gas counter has 22048060

      I make graph with mcsxap1wire.

      With temperature i have no probleme but with ds2423 i think i must use *** value but not sure.
      can you explain me?

      Thanx

      Comment


      • #4
        JUST ANOTHER question.
        My system is a Windows 7 64bits.
        Wher can i download new version:

        hERE?
        http://mcssprinklers.com/xapmcs1Wire.zip

        Comment


        • #5
          I think this is the good link.
          My version is 3.0.4.8

          TherE is not a new one?

          http://mcssprinklers.com/xapmcs1WireNet.zip

          Comment


          • #6
            Is possible to synchronise my gaz counter with xap value counter which as Athis value:17501991776930
            my real gas counter has 22048060

            I make graph with mcsxap1wire.

            With temperature i have no probleme but with ds2423 i think i must use *** value but not sure.
            can you explain me?
            No provisions exists in xapmcs1wire to change the DS2423. I believe you can use the OneWireViewer that comes with the Maxim-IC/DallasSemiconductor drivers to reset it to zero.

            xapmcs1wire is keeping track of daily counter values so the absolute value of the counter does not matter. To get total utilization over a period of time beyond one day then you need to store the daily totals in a database and run a query for the period of interest.

            I do not know what you mean by "*** value"

            xapmcs1wire will run on 32 or 64 bit machines. Go to Maxim-IC to get the appropriate 1-wire driver for 32 or 64 bits.

            xapmcs1wire does not produce graphs. xapmcsChart does and uses xapmcsDatabase. You can produce charts using other tools based upon the data delivered from xapmcs1wire.

            Comment


            • #7
              oK, perfect, i have understand!!
              Thank you

              Comment


              • #8
                Ok it works but i have a little problem and a question:

                Problem:

                I have created an event that:
                Cannot be retrigerred for 3600 seconds
                Trigger is: when count device value change and set to 0
                Action:Run a script (last day value become today value...)

                Problem is that several times in day, this event is launch which means that the value of the counter goes to zero which is not the case ...
                ???
                It can there be a refresh bug?

                Question:

                Count value is reset all day.
                Is it possible to chose the exactly time to make this reset?


                Thanx

                Comment


                • #9
                  I have two suggestions. One is to trigger the event every minute between midnight at whatever your counter polling rate is. In your script check to see if the new value is less than the prior value and in that case you know what the last value yesterday was and it can be saved.

                  Another approach is to read the xapmcs1wire .ini file and look for the last value on the line for the counter. That last value is the count at midnight for the counter. Run this event at midnight + a little more than the polling time of the counter.

                  Comment


                  • #10
                    Ok, it work well.
                    This is my code.
                    Event launch each minutes:


                    Sub Main(ByVal Parms As Object)

                    dim Yesterday As Integer = hs.devicestring("C3")
                    dim CUMDAY as Integer = hs.devicestring("%82")
                    dim TODAY as Integer = hs.devicestring("C2")
                    dim calc as Integer = Yesterday + CUMDAY

                    IF CUMDAY = 0 then

                    hs.setdevicevalue ("C3", TODAY)
                    hs.WriteLog("GAS", "count to zero")

                    else

                    hs.setdevicevalue ("C2", calc)
                    hs.WriteLog("GAS", "Count OK")
                    end IF

                    hs.setdevicestring ("C2" , hs.devicevalue ("C2"))
                    hs.setdevicestring ("C3" , hs.devicevalue ("C3"))


                    end sub

                    Comment

                    Working...
                    X