Search found 17 matches

by Ron Neal
Thu Dec 23, 2010 1:33 pm
Forum: NetBurner Hardware
Topic: Noise problem
Replies: 4
Views: 3988

Re: Noise problem

One of the debug routines in my code will take a number of readings and give me the high and low values and also the average reading. 1 g = .080 volts. Typical noise for the accelerometer at rest driven off of the battery is about .007 volts for 1000 samples, off of the battery and the CFV2-40 toget...
by Ron Neal
Thu Dec 23, 2010 12:25 pm
Forum: NetBurner Hardware
Topic: Noise problem
Replies: 4
Views: 3988

Noise problem

I have a CFV2-40 with an NBIO-200 board. Attached to 3 of the analog inputs on the NBIO-200 board are the X, Y and Z axis of a Crossbow accelerometer. I am powering the accelerometer with an 18 volt battery and would like to hook the CRV2-40 to the same battery. The problem is the noise level goes t...
by Ron Neal
Fri Mar 12, 2010 9:17 am
Forum: Off-Topic
Topic: C++ problem
Replies: 14
Views: 34475

Re: C++ problem

Since I converted all of the short variables to int the problem has gone away. If I convert them back I will try it and let you know. I did clean up my debug routine and other references that called sprintf or siprintf, thanks for the advice. void Debug(char* Msg, float ValueToShow){ char Str[100]; ...
by Ron Neal
Thu Mar 11, 2010 1:13 pm
Forum: Off-Topic
Topic: C++ problem
Replies: 14
Views: 34475

Re: C++ problem

rel190_fin Is this what you want for the release version? No offense taken on my programing, I'll take all of the helpful criticism I can get. Most of the programing I have done until lately has been with C#. The "short" variables should have worked, they are signed 16 bit whole numbers co...
by Ron Neal
Thu Mar 11, 2010 12:29 pm
Forum: Off-Topic
Topic: C++ problem
Replies: 14
Views: 34475

Re: C++ problem

Fixed but I don't understand why? I changed all of my former "short" variables to "int" and I static_cast<int>(Read ADC from NBIO-200) and all is well but I do not understand why. The "short" variables should have worked??? To be honest this looks to me like a bug in th...
by Ron Neal
Thu Mar 11, 2010 12:12 pm
Forum: Off-Topic
Topic: C++ problem
Replies: 14
Views: 34475

Re: C++ problem

FYI Changing my debug program from a "float" to a "short" gives me an output of 1460 with the following expresion which use to work??? I will try changing "X" and "Xatrest" to "int" and static_cast "X" to and "int" and see what ha...
by Ron Neal
Thu Mar 11, 2010 11:56 am
Forum: Off-Topic
Topic: C++ problem
Replies: 14
Views: 34475

Re: C++ problem

I will try changing "float" to "short" and see if that helps. void Debug(char* String, float ValueToShow){ char* Str = new char[100]; char cBuf[20]; sprintf(cBuf, "%.6f", ValueToShow); strcpy(Str, "<A>"); strcat(Str, String); strcat(Str, cBuf); strcat(Str, &qu...
by Ron Neal
Thu Mar 11, 2010 10:48 am
Forum: Off-Topic
Topic: C++ problem
Replies: 14
Views: 34475

C++ problem

short X, Xatrest; //X is typically = to 1977, Xatrest is typically = to 1964 short temp = (X - XatRest); Debug("X - XatRest = ", temp); //this will not display the correct answer, it shows 1460 Debug("X - XatRest = ", X - XatRest); //this works?!?!? It shows the correct answer of...
by Ron Neal
Wed Feb 24, 2010 12:53 pm
Forum: Off-Topic
Topic: UDP question
Replies: 5
Views: 8191

Re: UDP question

FYI. My network analyzer program showed that my cfv2-40 was sending all of the UPD packets correctly. The problem is with the client which is a C# GUI program running under XP Professional.

Thanks again for the info,

Ron
by Ron Neal
Mon Feb 22, 2010 5:23 pm
Forum: Off-Topic
Topic: UDP question
Replies: 5
Views: 8191

Re: UDP question

Thanks for the info,

Ron