Are there any sample program avaible?
winstonma
Posts: 45
I am a newbie on AMX programming in Hong Kong which there is no resources about AMX programming. So I would like to have some nice sample program to show me how AMX programming is done. Thanks.
P.S. Will there be anything like yahoo! groups about AMX?
Thanks for all help!!
P.S. Will there be anything like yahoo! groups about AMX?
Thanks for all help!!
0
Comments
Why AMX doesn't give new programmers examples of well written code, I don't know. When I first started I learned more from other people's code (reverse engineering) than any other form of learning. This is why modules shouldn't be locked.
I agree Gary in 100%.
I?m a beginner too and I?m always searching for pieces of code to find out how other programmers do it.
It?s nearly impossible to write a program by consulting the programmers manual only.
Winstonma, if you tell the nice guys of this forum what you want to control, they maybe can send you some code.
That's easy - they want you to take the official training, and they don't want to have to support programmers who don't. It's very sensible from their point of view.
Dave
I went through all the training and never received any sample code. I had to learn from reverse engineering... Toyota style. It's a great way to learn but it takes a lot longer.
They may not have given out sample code at training, but they did walk you through writing your own for every basic situation ... you wound up with your own samples. My first few months in the field I referred to what I wrote in training quite frequently.
This is, after all, a commercial venture, not a hobby. AMX has a vested interest in doing what they can to be as certain as they can that people programming their product are doing it in such a way that will reflect well on the product. They don't want an end-user calling them up saying, "your system works like crap," only to find some hack had programmed it based on samples cobbled together from the web site. It's bound to happen in any case, but AMX is not likely to want to contribute to it.
Mind you, this is just surmise; I don't know for a fact this is official policy. But I have been dealing with AMX for many years, and that surmise is consistent with what I know from working with them.
I completely understand and agree with what you are saying but, don't you think you would have learned much faster seeing code that was written correctly. Even today if I see a style or an idea that I like, I will incorporate it in my programming. I can't see the logic in not offering sample code to programmers that are CERTIFIED, to help than learn faster and more important learn go habits.
What good does a piece of code do if you are only going to copy paste from it? Write it yourself and you actually learn something, charge the customer for the time
lets open a post to hold all the examples we can think of.
I started programming AMX, found this site, asked a bunch of stupid newbie questions, got things up and running, and quickly learned how much I didn't know. I then signed up for the class and got the certification. Had I been able to make it all work without the class, I probably wouldn't have taken it. Now that I've taken it, I learned a lot of things I wouldn't have learned otherwise. My code is better now than it would have been had I taught myself, and that's AMX's goal.
J
I have some "canned" samples that I have written and send out to people when they request them. It is more difficult to send out an entire program without some idea of what you are looking for because it could be a complete waste of time if you are only looking for specific device types... IP, 232 or IR - or queueing, parseing or some other general code issue. If you can give me some specifics, and a little time, I can find or write some code samples to help or at least point you in the right direction to find some help. Feel free to email me at chris.lumley@amx.com ... but keep in mind, it may take a bit of time depending on the request and what I have going on. I like to help people who want to learn because it helps my programming too, so give me some specifics and I'll be glad to post something.
As I've always thought; AMX should give certified programmers the ability to download the comm files from their modules. The mods hold many ways of code design, layout and styles of code writing to enlighten everyone. And of course no tech support on mods that are not locked.
When I first started and I got my hands on a unlocked module comm file (did I say that), it was like looking through an encyclopedia for the first time. It really changed my thinking of code writing over night.
Where is that module?
Just a reminder, not all of the people are certifed programmers, and not all countries have AMX schools.... I have no option to learn AMX so that is not fair...
J