ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
11-26-2007 02:03 PM - edited 11-26-2007 02:04 PM
11-27-2007 10:59 AM
11-27-2007 11:17 AM
I did exactly what you suggest but with no effect. I'm also surprised that they didn't reply.
Here is the link to the bike if anybody is interested.
01-27-2009 03:01 PM
The reply from Monark:
The data coming from the bike into the PC over the RS232 connection is just a timer interupt. This is comming for each full rotation of the flywheel and one when the basket is falling down (start). Everything else is calculations in the PC software.
-----
And here are some data. The row begining with 80h represents the interruption from the wheel sensor and C0h is when the basket with the weight is triggered.
80 03 01 03 0D 07 0A 06
80 03 01 07 03 07 02 04
C0 03 01 08 0C 0C 09 05
80 03 01 0B 0A 06 0A 04
80 03 01 0D 0F 05 08 01
So this represents two revolutions of the wheel then basket trigger and then another two revolution. When I measured I revolved with the wheel slowly (cca 0.3Hz)
Any help would be appreciated.
01-28-2009 08:36 AM
01-29-2009 07:14 AM - edited 01-29-2009 07:14 AM
It appears the monarch website is down, so I cant look at the bike again to remember what it looks like. I am not sure what the basket is for.
You can probably search the serial data string for 80, and then mark it with a timestamp. And then when you get another 80, you can measure the difference in time. So you have had one revolution over X seconds, and then calculate the RPM from that.
01-29-2009 08:34 AM
02-04-2009 09:07 AM
Hey, may I join the codebreaking quest? ![]()
I transformed a bit the data you gathered:
\80\03\01\03\r\n
\07\n\n\
06\80\03\01\07\03\07\02\04\C0\03\01\b\f\f\t\05\80\03\01\0B\n\n
\06\n\n
\04\80\03\01\r\n
\0F\05\b\01
I think it makes some sense, could you provide some more data you recorded?
Regards,
Marton
NI Hungary
02-04-2009 09:27 AM - edited 02-04-2009 09:28 AM
I measured those data more then year ago. They should contain the sequence of padling on the bike (80h interruption from the flywheel - 8bytes), the basket is triggered then (C0h interruption, 8bytes) and the wheel slows down(80h, 8 bytes). Thanks Marton for your time. If you find something I will buy you (virtual) beer. Otherwise I will try the constant reading of the port and measuring the time between the "pulses".
02-05-2009 02:21 AM
Thanks for the VIs!
I guess the bits in the byte somehow represent parellel channels.
If you have a look at the attached VI you can see that a few channels make sense. The last three ones are mystery for me (anyway they are simmetric somehow. Might be an ECG signal without the 13Hz filter)
Regards,
Marton