Launch of Consumer/Home Owner registration process! We are pleased to announce the commencement of the Consumer/Home Owner Registration Process on Community. Consumers/Home Owners may now proceed to register by clicking on Login/Register. The process is straightforward and designed to be completed in just a few steps.
Access vast amounts of technical know-how and pro tips from our community of Geo SCADA experts.
Search in
Link copied. Please paste this link to share this article on your social media post.
Originally published on Geo SCADA Knowledge Base by Anonymous user | June 10, 2021 01:00 AM
string sSystem = "MAIN";string sUid = "Eng";string sPwd= "";// Define the server object and create a new instance of itScxV6DbClient.ScxV6Server objServer = new ScxV6DbClient.ScxV6Server();// Connect to the serverobjServer.Connect(sSystem, sUid, sPwd);// Define the object and create a new internal analog pointScxV6DbClient.ScxV6Object obj = objServer.CreateObject("CPointAlgManual", "$Root");
// Get objectScxV6DbClient.ScxV6Object O = S.FindObject( "New Analogue Point" );// The line below doesn't work because Interface is declared in the IDL as a vanilla IDispatch, instead we need to use late-binding via Reflection// O.Interface.LoadDataValues( Values, Times, Qualities );// Instead, use reflection:// Get the Historic aggregateobject Historic = O.Interface.GetType().InvokeMember( "Historic", System.Reflection.BindingFlags.GetProperty, null,O.Interface,null );// Invoke the LoadDataValues methodif ( Historic != null ) Historic.GetType().InvokeMember( "LoadDataValues", System.Reflection.BindingFlags.InvokeMethod, null, Historic, new object[] { Values, Times, Qualities } );
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.