Go Down

Topic: Practical Arduino logic analyser can't get going (Read 10664 times) previous topic - next topic


I could do with some assistance please. I am trying to get the Practical Arduino digital logic analyser going.
I cannot get past phase one, get the oscilloscope on the screen, it opens a window but it goes off top and bottom of screen and so I cannot get it to move or resize.
I actually only want four channels not the six displayed, so a smaller window would be required anyway.
I am sure there will be other issues once this is solved, but one step at a time.
I also note that on going to the Google site the Arduino Patch is not present.

If I open the same oscilloscope in a NetBook the window is white only and I cannot see the difference. Arduino is not plugged in either way.


I could do with some assistance please.

Unfortunately, you are a long ways from getting any with the information you provided.

Start with a link to the project you are talking about.

Arduino is not plugged in either way.

Pray tell, why not? What exactly are you expecting to see, if the Arduino is not sending data to be shown?
The art of getting good answers lies in asking good questions.


I appreciate what you say about a link. Sorry!
The oscilloscope part is the one on the Google site

I did say that 6 inputs were displayed on the oscilloscope and later said that on a netbook only a white screen. They are therefore different and should not be.

I did also say that Arduino was not plugged in either way.
Therefore Arduino has nothing to do with it.

I work on the principle of one thing at a time then when it doesn't work at least it is clear which part.

That part is getting the oscilloscope to display a reasonable size and be moveable so I can then start the next phase.


The downloads tab on the arduinoscope link contains several links. Which one(s) did you download? Which one(s) are you running?
The art of getting good answers lies in asking good questions.


Well this inexplicity seems to be a failing of mine. Sorry.
The precise links are...

It is the win32 application that runs on a Windows 7 laptop 800pixels high and shows the channels (that will fit) but on the netbook 600pixels high (not really relevant) it shows only a white window equally unmovable and overlapping top and bottom of screen.
That is the only thing that I have run because one of them failed and both have the size problem.
I read that an Arduino patch is available but the link is dead (again irrelevant to this problem).
In a nutshell it is as if the software were developed on a large screen and no account taken of other sized systems.
I thought that if I used 4 channels only the size would be reduced but I must admit that my noviceness in this particular area means that I could not understand.

I hope I have finally given all required, as I should have done at the start. I will try harder next time.


If you are running the .exe file that you unzipped from the 1st link, that is posting a pre-defined size window, with a predefined number of channels (6).

The 2nd link contains the source code. You should be able to modify that to have the number of channels and size that you want.
The art of getting good answers lies in asking good questions.


Thank you for that. Unfortunately I am not familiar with Java and the file is not well documented. Even if I assumed that 1024 was the figure for the window height and I changed it, I still wouldn't know how to 'compile' Java to give me the final exe.
I don't mind experimenting and spending time with guesswork editing but not knowing what to do then is a problem.
Continued assistance would be warmly welcomed.


The Processing program is a .pde file, too, except that it is opened in Processing, not Arduino. After you edit the code, you click Run, which compiles, links, and executes the resulting application. It is as easy to do as it is in the Arduino IDE.

As for what changes need to be made to the program, that depends on what you want to do. There are help files in Processing just like in Arduino.

Make a small change, and run. See if that gives you the results you want. Repeat until the program is yours.
The art of getting good answers lies in asking good questions.

Jonathan Oxer

I think you may be looking in the wrong place to change the code: what you're probably looking at is the Oscilloscope.java file, which is a library that provides functions to make it easier to write a software oscilloscope in Processing. You shouldn't need to modify that at all. The changes you need are most likely in the oscilloscope project itself.

One way to think of it is to analogize it to an Arduino project such as a web server. You'd probably use a library such as Ethernet to let you use an Ethernet shield, but you won't typically modify the library itself. Your sketch would written on top of it and use features of the Ethernet library for connectivity.

In the same way, the arduinoscope project uses Oscilloscope.java to provide features that can then be used by the actual scope project itself, which is written in Processing.

Where you probably need to look is around line 44 of "SimpleSerialArduinoscope.pde" in the "examples" directory. There's a setting there to specify how many channels you want.
Arduino-compatible board with prototyping area built in: www.freetronics.com/twentyten


Thank you Jon for coming in on this. Are you suggesting that if I change the settings as you say; when I then run the Windows application AND the Arduino part, the window will adjust to the size and channels I set?
Therefore, the visual result of running the Windows app on its own is a red herring.
I thank you and will have a play with it. I am a total newbie to MCUs and to C/C++ having been a Delphi-er. I haven't grasped this 'processing' file.
I still do not understand the white blank window on the NetBook which is running Windows 7 also.
Any more help on those would be gratefully received.
As a GMT-er I am off to bed.


I work on the principle of one thing at a time then when it doesn't work at least it is clear which part.

All well and good but you will find that one part is dependant on the other so even if everything is OK with one part unless you connect it up to the other part you will not see any functionality.
Your best bet is to get it all working first and then try and modify the code to get it to work exactly how you want.


Thank you and I understand of course, under normal circumstances but my first test was to find that I had two different windows on two systems with the same software.

I did not consider that it was interdependent on anything at that stage.
I am waiting to find the time to work on this but one question I have is, do I have to move the downloaded items to a particular place before running the whole?


do I have to move the downloaded items to a particular place before running the whole?

You have to upload the arduino software into the arduino if that is what you mean.


No, I meant does the downloaded Win32 app and the processing software need to be in a particular folder?
I find that I am missing some basic information regarding this. I have found it difficult to find documentation that explains what each part is doing and how they interact. I can see that the Win32 app can be run from the exe. I can see that the Arduino software needs to be uploaded, though I am sure there was more than one pde file, and which ones.
When I tried to save the file after attempting a change it said that it had to be in a folder, which of course it wasn't.
So the missing fundamentals of what actually goes on with any of these multi-part projects means that I am guessing and feel more out of my depth than I should be. Documentation nearly always seems sparse.
Perhaps you can point me to some explanatory tutorial on how a project like this (with java) hangs together and intercommunicates.


Suddenly I had a Eureka moment. Things became a little clearer when I found the 'Processing' page in Playground, and then I realised what Processing actually is.
My problem is obviously caused by not knowing what I need to know and what relationship each has to the other. There is no guide other than writing a Sketch in the IDE. A kind of list of important subjects to learn might be useful. The Arduino site (wiki?) seems a little haphazard, with few clues regarding reading order etc. Add to that (I think) that forumers often seem to assume that this required learning has been done.

I am not blaming everything else but a better guide to Arduino life might be useful. I think I am now on my way to solving this problem on my own due to this Eureka.

Go Up