Reply by Ben Pope July 30, 20032003-07-30
Ishira wrote:
> I know this question is awfully silly. But I just want to make sure > that it IS indeed as simple as this and that I havent missed anything. > > I have a file of raw data bits from a signal capture board. I havent > seen this file. But I know it's rather huge and that it has 0s and 1s. > > I need to run this file through a function and determine the ON and > OFF periods of the signal. > > Sounds simple. Well I have an algorithm in mind. I want to know how > you would handle this. If you could jot down the steps needed in the > algo it wold be simply great. This is just the tip of the iceberg that > i am supposed to crack and the starting trouble bug has gotten into > me! > > Thank you in advance. > Ishira
Sounds like you need to decode the "0s and 1s" into the numbers they represent, threshold those numbers (wherever on and off meet), then something similar to run-length-encoding the (now) binary signal you have. Ben -- I'm not just a number. To many, I'm known as a string...
Reply by Jerry Avins July 30, 20032003-07-30
Ishira wrote:
> > I know this question is awfully silly. But I just want to make sure > that it IS indeed as simple as this and that I havent missed anything. > > I have a file of raw data bits from a signal capture board. I havent > seen this file. But I know it's rather huge and that it has 0s and 1s. > > I need to run this file through a function and determine the ON and > OFF periods of the signal. > > Sounds simple. Well I have an algorithm in mind. I want to know how > you would handle this. If you could jot down the steps needed in the > algo it wold be simply great. This is just the tip of the iceberg that > i am supposed to crack and the starting trouble bug has gotten into > me! > > Thank you in advance. > Ishira
All those ones and zeros aren't just one big number. To interpret it, you need to know where one number ends and the next begins, How big the headers are and what they mean, and some more format information of that sort. If you know what is in the file, you can probably find out how it was made. If you can't, that's the same as its being encrypted. Jerry -- Engineering is the art of making what you want from things you can get. �����������������������������������������������������������������������
Reply by Ishira July 30, 20032003-07-30
I know this question is awfully silly. But I just want to make sure
that it IS indeed as simple as this and that I havent missed anything.

I have a file of raw data bits from a signal capture board. I havent
seen this file. But I know it's rather huge and that it has 0s and 1s.

I need to run this file through a function and determine the ON and
OFF periods of the signal.

Sounds simple. Well I have an algorithm in mind. I want to know how
you would handle this. If you could jot down the steps needed in the
algo it wold be simply great. This is just the tip of the iceberg that
i am supposed to crack and the starting trouble bug has gotten into
me!

Thank you in advance.
Ishira