Discover our Clipsal Smart Home packages as seen on The Block 2018

in location


I'm looking for

  • Wholesalers
    • Uncheck All Check All
    • Expand
    • Expand
    • Expand
    • Uncheck All Check All
  • Switchboard Manufacturers
    • Uncheck All Check All

The best way to see what Clipsal electric products can do for your home is seeing them in action at a Clipsal Display Centre.

Product stock may vary according to location. If you're after a specific product range, please check with your chosen location before visiting.

10 Results
    Load More Load Complete
    Change Location

    How to use LoadDataValue in C#


    The example below is intended to demonstrate one or more features or methods and is presented as a configuration example only. Schneider Electric assumes no liability for the use or application of this example or any portion thereof.

    LoadDataValue is a method that can be used to insert historic data to a point (more details on the ClearSCADA Database Schema).
    Below there is an example on how to connect to a local server and use this method:

            private void button9_Click(object sender, EventArgs e)
                DBObject TestPoint;
                Aggregate HistAgg;
                Object[] args;
                DateTime dt;
           args = new Object[4];
                using (Connection conn = new Connection("TestApp"))
                    // Connect to local server
                    SecureString passwd = new SecureString();
                    string strPassword = "adminexample";
                    foreach (char c in strPassword)
             conn.LogOn("AdminExample", passwd);
                    // Get the point
             TestPoint = conn.GetObject("~Points.A1");
                    // If Historic is enabled for the point, insert historic data
                    if (TestPoint.Aggregates.TryGetValue("Historic", out HistAgg) == true)
                  args[0] = 0;
                  args[1] = 192;
                  dt = new DateTime(2019, 4, 3, 7, 21, 52);
                  args[2] = new System.DateTimeOffset(dt);
                  args[3] = 88;
                  HistAgg.InvokeMethod("LoadDataValue", args);

    Didn’t find what you were looking for?

    Try Searching Again View Our Categories

    Need further assistance?

    Our Customer Care department provides total customer service solutions for our residential, industrial and commercial applications.

    Get Assistance