user9962: Are "thank you" or similar notes allowed in questions and answers?
I believe that they are frowned upon on some other engineering (stackexchange) forums.

user10794: Questions
Saying things like "Hi!" or "thanks in advance for answering" are frowned-upon, partly because they just clutter up the question. Also it's a bit cheeky in a question to thank people for an answer, it sounds like you are putting pressure on them to answer.
You will probably find some higher-reputation users removing such notes from questions, although I think if you are going to edit a question, you should be making more improvements than just removing "Thanks" from the end of it.
As Jeff Atwood noted there are better ways of thanking people for their answer like:

Voting up good answers
Accepting the best one
Helping the person who answered you by answering one of their questions if practical
"Pay it forward" by helpfully answering someone else's question

Answers
I'm not sure why you would put "thanks" in an answer. Who are you thanking? However again,  it just adds to the clutter to do it.
Comments
You are not supposed to make a comment to simply say "Thanks!". A more appropriate response is one of the ones above. The person answering will notice the reputation boost from voting up their answer, and certainly if you accept the answer it is clear who did the accepting.
However if you have something useful to say in a comment, then adding in a "thank you" won't do any harm. For example:

Thanks for that great answer. I found that if I increased the sampling rate it worked even better.

In that case you are contributing to the answer with your technical note, and slipping in a "thank you" at the same time.

9962: <p>Are "thank you" or similar notes allowed in questions and answers?</p>

<p>I believe that they are frowned upon on some <a href="https://goo.gl/R9g22N" rel="nofollow noreferrer">other engineering (stackexchange)</a> forums.</p>
 10794: <h1>Questions</h1>

<p>Saying things like "Hi!" or "thanks in advance for answering" are frowned-upon, partly because they just clutter up the question. Also it's a bit cheeky in a question to thank people for an answer, it sounds like you are putting pressure on them to answer.</p>

<p>You will probably find some higher-reputation users removing such notes from questions, although I think if you are going to edit a question, you should be making more improvements than just removing "Thanks" from the end of it.</p>

<p>As <a href="https://meta.stackexchange.com/a/17886/297719">Jeff Atwood noted</a> there are better ways of thanking people for their answer like:</p>

<ul>
<li>Voting up good answers</li>
<li>Accepting the best one</li>
<li>Helping the person who answered you by answering one of <em>their</em> questions if practical</li>
<li>"Pay it forward" by helpfully answering someone else's question</li>
</ul>

<h1>Answers</h1>

<p>I'm not sure why you would put "thanks" in an answer. Who are you thanking? However again,  it just adds to the clutter to do it.</p>

<h1>Comments</h1>

<p>You are not supposed to make a comment to simply say "Thanks!". A more appropriate response is one of the ones above. The person answering will notice the reputation boost from voting up their answer, and certainly if you accept the answer it is clear who did the accepting.</p>

<p>However if you have something useful to say in a comment, then adding in a "thank you" won't do any harm. For example:</p>

<blockquote>
  <p>Thanks for that great answer. I found that if I increased the sampling rate it worked even better.</p>
</blockquote>

<p>In that case you are contributing to the answer with your technical note, and slipping in a "thank you" at the same time.</p>
