rainflow count

K

kak3012

Hi,

does anyone want to share a rainflow count routine to share with me written
in C++?

TIA
 
P

puppet_sock

kak3012 said:
does anyone want to share a rainflow count routine to share with me written
in C++?

Sure. Post your instructor's email address, and I'll send one so
that the entire class can enjoy.
Socks
 
M

Mike Wahler

kak3012 said:
Hi,

does anyone want to share a rainflow count routine to share with me written
in C++?

#include <iostream>
#include "sensor.h"

unsigned long rfcount(void)
{
unsigned long count(0);

while(raindrop_detected())
{
++count;

if(count == 0)
std::cout << "Raindrops keep failing"
" to be read ...\n"
"The programmer must have"
"gone to bed ...\n";
}

return count;
}

int main()
{
std::cout << rf_count() << "raindrops detected" << '\n';
return 0;
}


I live in Washington State, so here, this code
could run for a very long while (and will probably
sing). Also, the current state of a certain mountain
could lead to distortion of the results.

-Mike
 
K

kak3012

funny..

there is no class..

it is only me..

I have this
(http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=30
26&objectType=file) but I cannot move it into LabView cuase I am not good at
C++, I cannot clear the MEX coding.

I have the procedure from FATIGUE LOADS 2nd edition 1990 from International
energy Agency, but it is so strange booklet for me.

What I mean is, I DO NOT need you, I am asking for help!

If you do not know the difference , well, you have just been educated.

Do not try to find another stupid way of expressing yourself...

have a nice day !
 
K

kak3012

creative :)


iletide þunu yazdý said:
#include <iostream>
#include "sensor.h"

unsigned long rfcount(void)
{
unsigned long count(0);

while(raindrop_detected())
{
++count;

if(count == 0)
std::cout << "Raindrops keep failing"
" to be read ...\n"
"The programmer must have"
"gone to bed ...\n";
}

return count;
}

int main()
{
std::cout << rf_count() << "raindrops detected" << '\n';
return 0;
}


I live in Washington State, so here, this code
could run for a very long while (and will probably
sing). Also, the current state of a certain mountain
could lead to distortion of the results.

-Mike
 
M

Mike Wahler

kak3012 said:

What our 'sarcastic' replies are indicating is that
nobody is going to write the code for you. If you
try to do it yourself and get stuck, you can post
your code accompanied by specific questions, which
will indeed elicit some help and advice from the
people reading here.

Also, you cannot assume that people will know what
'rainflow count' means in your context. I certainly
did not, but a quick peek with google indicates that
it's some defined algorithm. When you post your
code, either give a sufficient description of it,
or post a link to one.

-Mike
 
K

kak3012

what I do not understand is that attitude ?!!

I ask something.. you know it ? Lets have a chat.. You do not, just pass by.
This group is not the meaning of life.

I do not want to write the code ,cause it is not my business. I am allowed
to use a freesource code if I can find one. The aim of the software I am
writing is not the rainflow count.

I ahve already find one but cannot clear the Matlab MEX C++ code and make a
pure C++ code from it for DLL compile to use in LabView. That is all. (The
link is in one of the post in this threat I have send)

So, I have asked... telling again, you know it? lets talk, if not, what is
the meaning of these???!!!

waste of time.. for both of us..
 
V

Victor Bazarov

kak3012 said:
what I do not understand is that attitude ?!!

Is that a question?
I ask something.. you know it ? Lets have a chat.. You do not, just pass by.

Consider refraining from telling people what to do. Oops. Didn't I just
tell you what to do? Damn.
This group is not the meaning of life.

It doesn't mean you couldn't benefit from it.
I do not want to write the code ,cause it is not my business. I am allowed
to use a freesource code if I can find one. The aim of the software I am
writing is not the rainflow count.

Who cares?
I ahve already find one but cannot clear the Matlab MEX C++ code and make a
pure C++ code from it for DLL compile to use in LabView. That is all. (The
link is in one of the post in this threat I have send)

So, if you already found it, and are having problems with it, wouldn't it
make more sense to post the problematic code to ask for advice instead of
looking for more free code? And bitching about attitudes?...
So, I have asked... telling again, you know it? lets talk, if not, what is
the meaning of these???!!!

Meaning is to tell you how to get the best out of visiting this newsgroup,
that is all.
waste of time.. for both of us..

Exactly. Perhaps after realising this you'll be on your way... I wish...
 
K

kak3012

again waste of time Victor.. why? I dont know..

but it is a free news group.. go for it !.
 
M

Mike Wahler

kak3012 said:
again waste of time Victor.. why? I dont know..

but it is a free news group.. go for it !.

A few words of friendly advice:

Before posting here again, I strongly suggest you
read this:

http://www.slack.net/~shiva/welcome.txt

and this:

http://www.parashift.com/c++-faq-lite/

These should cause you to realize that your original post
was not topical here anyway, so any and all of your
complaints will most likely fall upon deaf ears.

Also, I suggest you find and read the corresponding document(s)
for any other newsgroup(s) (especially technical ones) which
you might want to post to. This should go a long way toward
preventing more misunderstandings and wasted time when using
Usenet.

-Mike
 
K

kak3012

sure.. !


iletide þunu yazdý said:
A few words of friendly advice:

Before posting here again, I strongly suggest you
read this:

http://www.slack.net/~shiva/welcome.txt

and this:

http://www.parashift.com/c++-faq-lite/

These should cause you to realize that your original post
was not topical here anyway, so any and all of your
complaints will most likely fall upon deaf ears.

Also, I suggest you find and read the corresponding document(s)
for any other newsgroup(s) (especially technical ones) which
you might want to post to. This should go a long way toward
preventing more misunderstandings and wasted time when using
Usenet.

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,967
Members
47,517
Latest member
Andres38A1

Latest Threads

Top