Coverting analog scope samples to a digital signal for proper UI

Hello there,

I've gathered a few samples with a PC scope from a device I want to hack and I'd like to analize that signal what I gatheres looks like this:

#CHANNEL:CH1
#CLOCK=500uS
#SIZE=130048
#UNITS:V

1.2863
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
1.2549
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569
0.1569

Now I'd like to display it way more cleanly meaning I want to just take a look at where the data is 1.xxxx and 0.xxxx put all the pulses that are almost the same length together and convert them automatically to ASCII and have a little indicator of what length each pulse group is and at the end have that program take 2 of those sample compare them and then highlight what is the difference between the data(sins I've took the samples at different conditions)

Thanks for helping.

That's a lot of requirements for very little indication as to what is going on.

However if you get yourself this Enhanced Serial Monitor - ESM4 new error reporting system - Interfacing w/ Software on the Computer - Arduino Forum

make yourself a project called properui
and save this below to a file such as properui.txt into the directory that the ESM has made called properui

#CHANNEL:CH1
#CLOCK=500uS
#SIZE=130048
#UNITS:V
#swp~clear
#swp~ymin~0
#swp~yint~0.4
#swp~1.2863
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569

and then in the message sending part of the ESM monitor type #esm~run~projects\properui\properui.txt

You will see your data plotted out on the SWP visualiser.

Perhaps you could capture your data directly from the device using the ESM as well?

Does this lead you anywhere towards your goal?

Alan

acboother:
That's a lot of requirements for very little indication as to what is going on.

However if you get yourself this Enhanced Serial Monitor - ESM4 new error reporting system - Interfacing w/ Software on the Computer - Arduino Forum

make yourself a project called properui
and save this below to a file such as properui.txt into the directory that the ESM has made called properui

#CHANNEL:CH1

#CLOCK=500uS
#SIZE=130048
#UNITS:V
#swp~clear
#swp~ymin~0
#swp~yint~0.4
#swp~1.2863
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~1.2549
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569
#swp~0.1569





and then in the message sending part of the ESM monitor type *#esm~run~projects\properui\properui.txt*

You will see your data plotted out on the SWP visualiser.

Perhaps you could capture your data directly from the device using the ESM as well?

Does this lead you anywhere towards your goal?

Alan

Am not sure realy I was hoping to get something quite simpler maybe even just import all data to an Exel file import the other data like "HIGH VOLTAGE VALUE" "LOW VOLTAGE VALUE" "SAMPLE RATE" run a script and plot that out in some understandable way.

Did what you said in the beginning but when I send that command it simply "reads" the text file and puts in the the textbox below in the ESM form and not plotting anything in the SWP visualizer.

Also I want the "data groups" of that protocol to be automatically converted to a hex number so I can easily compare all instead of dissecting each rise and fall wave....

How do you know its read the text file if it hasn't output anything to the SWP visualiser? You did look at the SWP visualiser?

If you simply type #swp~1.2345 and send it, it will 'give' that data to the SWP visualiser - that will confirm you are outputting messages correctly.

Reading the file sends messages to whatever visualisers are referred to in it until it comes to the end of the text file. You could have #swp or #xy or etc etc.

If you format your data to be hex and not decimal you can send it to #LOG which can also be saved in a file and then imported or copied into Excel if you would rather.

I can't help you with the grouping stuff.