Click here to Skip to main content
15,881,413 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementing a moving average Pin
Ralf Meier16-Feb-18 12:42
mveRalf Meier16-Feb-18 12:42 
GeneralRe: Implementing a moving average Pin
Ralf Meier17-Feb-18 0:14
mveRalf Meier17-Feb-18 0:14 
GeneralRe: Implementing a moving average Pin
auting8217-Feb-18 0:36
auting8217-Feb-18 0:36 
AnswerRe: Implementing a moving average Pin
Ralf Meier17-Feb-18 0:53
mveRalf Meier17-Feb-18 0:53 
GeneralRe: Implementing a moving average Pin
auting8217-Feb-18 1:13
auting8217-Feb-18 1:13 
GeneralRe: Implementing a moving average Pin
Ralf Meier17-Feb-18 3:30
mveRalf Meier17-Feb-18 3:30 
AnswerRe: Implementing a moving average Pin
Ralf Meier17-Feb-18 3:50
mveRalf Meier17-Feb-18 3:50 
GeneralRe: Implementing a moving average Pin
auting8217-Feb-18 7:40
auting8217-Feb-18 7:40 
Thanks a lot.Have some questions. Trying to understand your code.
You are running 5 cycles to save 5 sensor values?
What is the measuring value you are referring to?Confused | :confused:
Are you talking about:
C#
Analogsensorvalues=sObj[id].GetDigitalValue();

Because this is where and how I actually enter or get the randomly generated sensor values from the Sensor.cs class.

C#
// take the samples
            for (int cycle = 1; cycle <= 5; cycle++)
            {
                for (int sensor = 0; sensor <= 6; sensor++)
                {
                    AnalogSensorValue[sensor, cycle] = AnalogSensorValues;  // <- assign your meassurering-value here instead of 1234
                    txtNumberWritings.Text += sensor.ToString(); // do your Textbox-Assignment here as you need
                }
            }


I tired something here, but not really sure if I understood how I am suppose to store my values.Unsure | :~
I am just getting 0,1,2,3,4,5,6 in the text box

If the code works as intended I should be getting values I have for each sensor?
GeneralRe: Implementing a moving average Pin
Ralf Meier17-Feb-18 10:11
mveRalf Meier17-Feb-18 10:11 
GeneralRe: Implementing a moving average Pin
auting8218-Feb-18 8:40
auting8218-Feb-18 8:40 
GeneralRe: Implementing a moving average Pin
Ralf Meier18-Feb-18 9:32
mveRalf Meier18-Feb-18 9:32 
GeneralRe: Implementing a moving average Pin
auting8227-Feb-18 21:33
auting8227-Feb-18 21:33 
AnswerRe: Implementing a moving average Pin
Gerry Schmitz15-Feb-18 8:16
mveGerry Schmitz15-Feb-18 8:16 
Question.NET - choose correct service for conversion Pin
Bulgarin14-Feb-18 4:54
Bulgarin14-Feb-18 4:54 
AnswerRe: .NET - choose correct service for conversion Pin
Gerry Schmitz14-Feb-18 6:40
mveGerry Schmitz14-Feb-18 6:40 
Questioncreating trial version and expiry date issue Pin
Mou_kol14-Feb-18 0:30
Mou_kol14-Feb-18 0:30 
AnswerRe: creating trial version and expiry date issue Pin
Pete O'Hanlon14-Feb-18 0:38
mvePete O'Hanlon14-Feb-18 0:38 
GeneralRe: creating trial version and expiry date issue Pin
Mou_kol15-Feb-18 21:16
Mou_kol15-Feb-18 21:16 
AnswerRe: creating trial version and expiry date issue Pin
Eddy Vluggen14-Feb-18 3:22
professionalEddy Vluggen14-Feb-18 3:22 
AnswerRe: creating trial version and expiry date issue Pin
OriginalGriff14-Feb-18 4:30
mveOriginalGriff14-Feb-18 4:30 
AnswerRe: creating trial version and expiry date issue Pin
Gerry Schmitz14-Feb-18 6:32
mveGerry Schmitz14-Feb-18 6:32 
QuestionHow dotnet application run Pin
Mou_kol13-Feb-18 22:12
Mou_kol13-Feb-18 22:12 
AnswerRe: How dotnet application run Pin
phil.o13-Feb-18 23:00
professionalphil.o13-Feb-18 23:00 
GeneralRe: How dotnet application run Pin
Mou_kol14-Feb-18 0:09
Mou_kol14-Feb-18 0:09 
GeneralRe: How dotnet application run Pin
phil.o14-Feb-18 0:59
professionalphil.o14-Feb-18 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.