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?
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?
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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/
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.
returnedLogList = conn.Read< LogList >(logList);
Thanks in Advance.
Regards,
Guilherme
Last edit: Guilherme Teodoro da Silva 2012-09-06