View Full Version : Nest Of Birds Matlab Program
butlerfly24
09-08-2011, 10:12 AM
Hello,
I am working with a very cranky Nest of Birds system which constantly crashes seemingly for fun. Looking at the C programming it has so many "goto" commands it appears that the program is a choose your own adventure novel that doesn't flow right. I am not a great C programmer and don't want to make it more angry.
We are wondering if anyone has created a Matlab program to run the NOB system that they would be willing to share (for partial credit in publications of course) or if you have some tips on fixing the ugliness we have
Even if you are just using the NOB system, how is it working for you? Have you had to make any programming modifications?
tandresen
09-09-2011, 11:36 PM
Colleen,
Inherited C programs can be VERY frustrating. I am not familiar with NOB code. However, I have debugged lots of “spaghetti” C code in the past.
I’m not sure how you handle C code inside Matlab.
But, if you can run the code in stand-alone mode, you might see if you can recompile it in debug mode. Mimic the input values and put break points at each GOTO. Use the Step-in option to follow the command sequence. Some interactive debuggers let you hold the cursor over a variable in the code above the break-point and see its value. If that works, you could examine the conditional that is sending you off to the GOTO. When you discover something, add a detailed comment for yourself and the next poor soul.
If you can’t run the C program in stand-alone mode, add lots of printf() statements, so you can trace the “logic”. If you can find the place where it crashes you could add printf()’s just before that point.
If you get it running, you should test it against a “truth model” to confirm that it is doing the calculation properly.
Good luck,
Ted Andresen
kbell56
09-14-2011, 06:57 AM
We are currently running a nest of birds using Matlab - we actually got most of our original code straight from Ascention Technology (their tech support is actually pretty good) - they do not officially support the Matlab code, but gave it to us freely. Regardless, we have upgraded and customized the code dramatically at this point and have been using the system to test cervical ROM for several years now with good success. Feel free to contact me directly with more specifics of what you are doing / what you need and we can go from there.
nkrishnamurthi68
09-27-2012, 04:33 PM
Hi,
I have a Nest of Birds system and I am in need of some code that I can use to collect position (x, y, and z directions) data. It would be helpful if the code allows me to collect data from at least 2 sensors simultaneously. Based on your below message, can you please send me the Matlab code that you are using? Please let me know.
Thanks,
Narayanan.
We are currently running a nest of birds using Matlab - we actually got most of our original code straight from Ascention Technology (their tech support is actually pretty good) - they do not officially support the Matlab code, but gave it to us freely. Regardless, we have upgraded and customized the code dramatically at this point and have been using the system to test cervical ROM for several years now with good success. Feel free to contact me directly with more specifics of what you are doing / what you need and we can go from there.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.