Menu

Mnemonic Last Value

2012-09-06
2012-09-06
  • Guilherme Teodoro da Silva

    Hi Team, I'm using the toll DevKit and enjoing, but I have stoped in a problem that I'm not able to solve
    I need to get the last data from one Mnemonic in a specific Log,Well,Wellbore , for example Hookload(avg).

    I have checked the examples in the Document but there is only simple querys.
    Could you kindly help me giving me an exaple for I can follow?

    The code bellow that I'm tring is not Working.

    public LogList logList;

    this.logList = WITSMLWebServiceConnection.BuildEmptyQuery< LogList >();

    logList.Log[0].Uid = "GS-1";
    logList.Log[0].UidWell = "W-1-BP-7-RJS";
    logList.Log[0].UidWellbore = "WB-1-BP-7-RJS";
    logList.Log[0].LogCurveInfo[0].Minemonic = "Hookload(avg)";

    returnedLogList = conn.Read< LogList >(this.logList)

    Thanks!

     

    Last edit: Guilherme Teodoro da Silva 2012-09-06
    • Energistics

      Energistics - 2012-09-06

      Guilherme,
      What I notice right away is that you have misspelt mnemonic in the code. I don't know if it is a typo in this email or if your code is like that:
      logList.Log0.LogCurveInfo0.Minemonic = "Hookload(avg)";
      Should that not be:
      logList.Log0.LogCurveInfo0.Mnemonic = "Hookload(avg)";

      We will try to reproduce your problem and let you know.
      Thanks
      -Hari

      [Description: logo_transp]Hari Koduru
      Sr. Technical Advisor
      Energistics
      One Sugar Creek Center Blvd.
      Suite 1075
      Sugar Land, TX 77478
      +1 281.243.2137 (voice)
      +1 281.243.2123 (fax)

      From: Guilherme Teodoro da Silva [mailto:guiteodasilva@users.sf.net]
      Sent: Wednesday, September 05, 2012 10:11 PM
      To: [stdsdevkit:discussion]
      Subject: [stdsdevkit:discussion] Mnemonic Last Value

      Hi Team, I'm using the toll DevKit and enjoing, but I have stoped in a problem that I'm not able to solve
      I need to get the last data from one Mnemonic in a specific Log,Well,Wellbore , for example Hookload(avg).

      I have checked the examples in the Document but there is only simple querys.
      Could you kindly help me giving me an exaple for I can follow?

      The code bellow that I'm tring is not Working.

      public LogList logList;

      this.logList = WITSMLWebServiceConnection.BuildEmptyQuery();

      logList.Log0.Uid = "GS-1";
      logList.Log0.UidWell = "W-1-BP-7-RJS";
      logList.Log0.UidWellbore = "WB-1-BP-7-RJS";
      logList.Log0.LogCurveInfo0.Minemonic = "Hookload(avg)";

      returnedLogList = conn.Read(this.logList)

      Thanks!


      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/stdsdevkit/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/prefs/

       
      • Guilherme Teodoro da Silva

        Hi I have checked one other example in the document, so I have tryed to do something like the example.

        The query is running without problems, but the LogCurveInfo list have a Count=34, I mean I have selected 1 mnemonic but is returning everything, and also the LogCurveData list is returning just one row, with the first point of each menamonics.
        I would like to get for example the current value of a specific menemonic of a specific log of a specific well and wellbore.

        the Query now is the code bellow, also I have attached screenshots for your better understanding.

                LogCurveInfo curve = new LogCurveInfo();
                curve.Minemonic = "Hookload(avg)";
        
                Log log = new Log();
                log.Uid = "GS-1";
                log.UidWell = "W-1-abc-7-efg";
                log.UidWellbore = "WB-1-abc-7-efg";
                log.LogCurveInfo = new List< LogCurveInfo >();
                log.LogCurveInfo.Add(curve);
        
                LogList logList = new LogList();
                logList.Log = new List< Log >();
                logList.Log.Add(log);
        

        returnedLogList = conn.Read< LogList >(logList);

        Thanks in Advance.

        Regards,

        Guilherme

         

        Last edit: Guilherme Teodoro da Silva 2012-09-06

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.