public current MeasureChannelCurrent() { lock (ioMultiMeterCntrl) { current ch_current=new current(); ioMultiMeterCntrl.WriteString("CALC:STAT ON", true); //turn on the calculation function ioMultiMeterCntrl.WriteString("CALC:FUNC AVER", true); //calculation function is Average System.Threading.Thread.Sleep(Config.Delay.Measurement); //wait for 500ms ioMultiMeterCntrl.WriteString("CALC:AVER:AVER?", true); ch_current.average = (double)ioMultiMeterCntrl.ReadNumber(IEEEASCIIType.ASCIIType_Any, true); ioMultiMeterCntrl.WriteString("CALC:AVER:MAX?", true); ch_current.max = (double)ioMultiMeterCntrl.ReadNumber(IEEEASCIIType.ASCIIType_Any, true); ioMultiMeterCntrl.WriteString("CALC:AVER:MIN?", true); ch_current.min = (double)ioMultiMeterCntrl.ReadNumber(IEEEASCIIType.ASCIIType_Any, true); ioMultiMeterCntrl.WriteString("CALC:STAT OFF", true); //turn off the calculation function //ioMultiMeterCntrl.WriteString("FETC?", true); //ch_current = (double)ioMultiMeterCntrl.ReadNumber(IEEEASCIIType.ASCIIType_Any, true); return ch_current; } }
/// <summary> /// SetMeteo /// </summary> /// <param name="temp"></param> public void SetMeteo(current meteo, string heure) { Couleur couleur = new Couleur { R = 64, G = 0, B = 0 }; if (meteo != null) { string leading = ""; if (meteo.temperature.value.ToString("0").Length < 2) { leading = " "; } Print(leading + meteo.temperature.value.ToString("0") + "°C", 1, 1, couleur); Print("H " + meteo.humidity.value.ToString() + "%", 2, 7, couleur); } Print(heure, 2, 13, couleur); BackGround(); }
//Used for drawing the L-System with the initial angle void renderState(current state) { foreach (char character in state.State) { switch (character) { case '+': currentAngle -= state.Angle; break; case '-': currentAngle += state.Angle; break; case '[': stack.Push(new AnglePos(currentAngle, currentPosition)); break; case ']': AnglePos obj = stack.Pop(); currentAngle = obj.angle; currentPosition = obj.position; break; default: createObject(); break; } } }
Connect(current, next, elseCondition);
Connect(current, thenBlock, thenCondition);
return(GetFirstToken( current, GetPredicateFunction(includeZeroWidth),
if (!TryMoveTo(ref current, grid, visited)) { return(false);
return(GetFirstToken(current, GetPredicateFunction(includeZeroWidth), GetStepIntoFunction(includeSkipped, includeDirectives, includeDocumentationComments)));
if (!this.itemsById.TryGetValue(key, out var current) || !Equals(current, value)) { this.isDirty = true;
from preamble in this.TryExtractPreamble(current) from text in current.ConsumeLine().ObjectOfType <NonEmptyText>()
class.class26_0.Add(current.Clone());
/// <summary> /// UpdateMeteo /// </summary> public static async void UpdateMeteo() { current meteo = await GetMeteo(); Context.Meteo = meteo; }
return(Find(current, value, Comparer <T> .Default));
=> this.ProgressTracker = new StreamingProgressTracker((current, max) => this.ReportProgressAsync(current, max).AsTask());
Class533 class2 = new Class533(current, 9f, Class521.vector2_0, 1f, false, Color.get_White());
(alignment is 0u || TryAllocateMemoryBlockWithAlignment(current, alignment, sizeInBytes));
ReferenceType.None => CreateMarkupForSingleProject(current, referenced, currentLanguage),
this.ApplyBeforePreamble(current, script);
ReferenceType.Metadata => GetMarkupWithReference(current, referenced, currentLanguage, referencedLanguage, false),
(current, tag) => refactorCodeShortcut(current, tag.opening, tag.closing));
public static Span ReadLine(this ref TextFile file, Caret current) => new Span(current, file.CurrentLineLength(current) - current.Column);
ReferenceType.Project => GetMarkupWithReference(current, referenced, currentLanguage, referencedLanguage, true),
var(current, maximum) = nextBatch.Last();
(OutgoingResponseFrame response, OutputStream ostr) = PrepareReturnValue(current, compress, format);
this.Advance(current, changes.First(transition => transition.Core.Equals(current.Core)), index, changes);
return(new Sprite(current, Rectangle.Empty, 0, spriteOffset, channel, BlendMode.Alpha));
=> new ListToken(current, extension.range, extension.delimiters)) as ListToken);