Nullllll Posted April 16, 2007 Report Posted April 16, 2007 I need ur help plz, I am reading from my DAQ card severla values , all inside the loop , then I want to get the avergae of those values , so I added a shift register then outside the loop I have divided by n , but it is starnge that the shift regsiter gave me only the last value , I mean I am reading 100.101.102.103.104 so it gives me only 104 ?? can u help plzz Quote
Ami Posted April 16, 2007 Report Posted April 16, 2007 Dear Mr. Nullllll, I wonder if you ever inquired about the reason why something doesn't work in your code before you post your questions on this forum. We all understand that you probably have some sort of a deadline at work or school, but you are giving an impression that you are very lazy. Instead of learning ways to debug your code or even gather some information about the subjects you mention, you pick the easy way out and just post a question. The bigger problem is that you don't even respond to replies like this one and just keep on doing what you do best. If you can't even learn from all the replies about your manner of posting questions, why should anyone help you with anything at all? "Plz" (quote) give everyone a break and either change your ways or stop posting anything else. With my best regards, Ami Quote
karthik Posted April 16, 2007 Report Posted April 16, 2007 Hello Nulll, There is nothing strange when shift register gives you last value... Instead of using shift register,Try to bring all values outside of loop(Array) and caluculate the average... Do not forget to enable indexing in a loop I think ami is correct...Repond to the mail properly... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.