RailPro > RailPro Specific Help & Discussion
AM-1S PROGRAMMING
Tom:
It has been a frustrating few day with my new AM-1S and instructions for “Creating Custom Accessory Projects” in hand. The “project” is to create an accessory project that will turn on and off a flashing RR crossing signal and bell. The idea was to write a program to turn on power to the circuit board that came with the crossing signals, thereby avoiding having to create flashing light effects for each signal light, and start the .wav file with the ringing bell. After failure trying both light and bell, I opted to precisely follow the directions to “Make a Button on the Screen Play a Sound” only. This did not work either. So here is situation:
All software is up to date
Project
“Crossing Bell” .wav file copied to HC-2
“Crossing Signal” Project copied to HC-2
“Crossing Bell” .wav file copied from HC-2 to AM-1S
“Crossing Signal” Project file copied from HC-2 to AM-1S
Access Accessories from Main Page, Press Bell button, nothing. Caution info: “Sound File Not Found.”
Additionally, when trying to delete the Project from the HC-2, there is no option to do that: only Pictures, Sounds and Lights. The “Crossing Bell” .wav file is available to delete under Sounds. This is exactly the same result when trying to delete files from the AM-1S: the only options are Pictures, Sounds and Lights, and the .wav file is there to delete.
Since the .wav file is on the AM-1S it has to be something with the program. Does anyone proficient with the AM-1S programming have a clue as to what I am doing wrong?
G8B4Life:
Yes, I can see what's wrong. You got the Sound File Not Found error because of a naming error. When you type in the sound name you must be exact and include the CF symbol as it's part of the filename for user created content (sounds, accessory projects, light effects).
--- Quote from: Tom on May 14, 2021, 05:48:55 PM ---Additionally, when trying to delete the Project from the HC-2, there is no option to do that...
--- End quote ---
This was noted a long time ago as a bug (even though it's more of a missing feature than a bug). If I recall correctly the official response was along the lines of "Meh, they're only really small files". It's one of the reasons I use a CI-1 and HC Sim for all copying and downloading.
- Tim
Tom:
Thanks Tim,
Sweet smell of success - initially. The bell now rings and I got the flashing crossing signals to work also, by connecting Output 5 to the circuit board. The problem now is that when the Bell button is pressed again the Bell shuts off but the lights keep flashing. So I revised the program, as seen below, but the lights still do not shut off.
When copying the program with the same name from Internet to HC and from HC to AM-1S it seemed to go awfully quickly. I am wondering that if the revised program is named the same as before, the copying really does nothing. If you think the revised program looks good, I will rename it and copy it but I would like to have some confidence that that is the problem rather than the program since there are now a lot of undeletable projects on the HC and AM-1S.
I think being able to delete Projects would be good for RailPro business. Not being able to delete them is a problem for anyone wanting to get started with “Projects.”
G8B4Life:
Not sure why that is, I've never actually used an accessory program. You may need to separate the Set Output instruction from the IF statement. Also your IF Bell = 0 statement does nothing.
First remove the IF Bell = 0 statement from your current program you posted and see if it works. If that doesn't work give this version a shot and see if it works.
--- Quote ---When copying the program with the same name from Internet to HC and from HC to AM-1S it seemed to go awfully quickly.
--- End quote ---
The copying goes quickly because the program is small, probably less that 100 bytes.
--- Quote ---I am wondering that if the revised program is named the same as before, the copying really does nothing. If you think the revised program looks good, I will rename it and copy it but I would like to have some confidence that that is the problem rather than the program since there are now a lot of undeletable projects on the HC and AM-1S.
--- End quote ---
If something is named the same as something else of the same type then it will be over written when copying, so an accessory project named Crossing Signal will overwrite another accessory project of the exact same name when copying.
As far as I know the Accessory Modules can only have one accessory program on them at a time, so if you had a project named "Flashing Lights" on it and then copied the program "Crossing Signal" to the AM "Flashing Lights" would be overwritten with "Crossing Signal". This would be the only time a file overwrites another file of a different name.
--- Quote ---I think being able to delete Projects would be good for RailPro business. Not being able to delete them is a problem for anyone wanting to get started with “Projects.”
--- End quote ---
No argument here but he just doesn't seem to have any will to do it. Not trying to change you but again, one of the reasons I (and many) use the CI-1 and HC Sim to do copying and downloading, HC Sim can be blown away and reinstalled at any time, so if you filled it up with useless projects you could easily start again with a clean slate.
In fact, I'd suggest downloading and installing HC Sim, even if you don't have a CI-1 just so you can use it to download the other accessory projects from Ring so you can study the ready made examples without filling up the physical HC with programs you can't delete.
Note: Edited post for clarity.
- Tim
Tom:
Thanks again. I will keep working on it. Seems like if an output can be turned on it ought to be able to be turned off. In this case by pressing the Bell button again. Maybe there is some other way.
Navigation
[0] Message Index
[#] Next page
Go to full version