Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Jmriusers
- Messages
Search
Locked
Re: Need help compilling and running JMRI
Alex Shepherd
I can't find any option like that under the Project Properties.All the version differenences are a bit of a blur to me now but I do know that way back when I suggested to Bob that he try JBuilder, I was about to download JMRI, rearrange it, get it to compile and it all worked. That was before the resources issue and RMI but if we are lucky, this should all still be possible. I uncommented this line and the scrolling problem went away!Good that you spotted this - Bill's OS strikes again... This is way out of my depth. It seemed like I got pretty close to havingto go ok based on the date/time stamps I see on the files in the classWhat version of JBuilder are you (and others) trying to use? Hopefully I can download it and have another go. Last one I tried was JBuilder 5 Personal and it worked but was a real pain in some ways when you are used to using Professional or Enterprise. Guess that is no surprise. If all this turns out to be too difficult, then if we moved to an ANT based build (which is also supported in JB7) then those who do not have JB Pro or Ent could maybe download the Java IDE at and develop using this. Using ANT would be more work but it would give us more control. People could even just download a JDK and ANT and use Notepad to edit the code and call ANT from the command line, like many UNIX users have done for the last 30 years... I actually use JB 4 Enterprise at home. We have JB 7 at work and the new licensing is tied to the user not the PC, which officially allows it to be installed on all the computers that the user uses, so I need to get it going at home and upgrade from 4 to 7 Alex |
Locked
Re: Need help compilling and running JMRI
Robin Becker
Alex,
Thank you for the response. I can't find any option like that under the Project Properties.Opened JBuilder. Went to Tools/Configure JDKs and changed javafrom 1.3.1which came with JBuilder to 1.4.0_01 which I had previously installed onI suggest you go to the project properties and define this class to be the Ok I found the config files. From your other comments it sounds like theA side issue - JBuilder seems to be using Java 1.3.1 internally, as someThe version of Java that JBuilder uses to run itself is defined JRE 1.4.0 might not have all the files that are needed by JBuilder though. However, I did find the following in the jdk.config file: # +-----------------------------------------------------+ # | | # | Uncomment the following line if you are seeing | # | screen glitches while running JBuilder. This | # | problem is especially common under Windows 95/98. | # | | # +-----------------------------------------------------+ #vmparam -Dsun.java2d.noddraw I uncommented this line and the scrolling problem went away! ==============================It's funny. Here's what I observed, excerpted from another email:There was no resources entry in the upper-left page. I did an "AddMaybe JBuilder Personal expects the resource definition to also be in the 2. Use Project / Add Files - Packages to add "resources" as a package to the project. 3. The JBuilder Project Pane shows a complete directory tree under resources - icons/smallschematics/... 4. Explorer shows that there is no resource folder under java/classes. 5. Ran JMRIDemo - app now opens. Panels/New Panel produces image errors. 6. Explorer shows that there is a resource folder under java/classes. There are two entries - logo.gif and decoderpro.gif, but no folders underneath. Note there is a resource folder under java/src and also one at the top level of the project, and both of these have the resource directory tree - icons/smallschematics/... 7. Copied the resource directory tree to java/class/resources. 8. Ran JMRIDemo - app finds the icons and Panels/New Panel opens ok. We maybe able to create separate project files one for each of the mainThis is way out of my depth. It seemed like I got pretty close to having things running under JBuilder - was able to set breakpoints, examine variables, etc. The build using jdk 1.3 that comes with JBuilder seemed to go ok based on the date/time stamps I see on the files in the class directory. Still having some problems with loading and storing panels though. Robin |
Locked
Re: Need help compilling and running JMRI
Alex Shepherd
Hi Robin and Bob, (composite reply to several messages)
Undid the approach suggested below. Went to Tools/Configure Libraries,"Could not find main class" error.The problem here is that the project file has a reference to a bunch of libraries but with JBuilder Personal it does not allow per project library definitions only personal global definitions. (to provoke you to buy the next version) so It is looking for the library definition in your personal home directory (where ever Windows decides that is) This is something you have to do personally as I am not sure how we could convinve WinCVS to put the library definition there. Maybe manually run a post checkout script which takes the project library files and puts them in the users personal home directory. Closed JBuilder. Tried to run installed version of JMRIDemo and found itThe last Java to be installed wins and JBuilder comes with 1.3.1 which changed the registry from 1.4.0 to 1.3.1 Opened JBuilder. Went to Tools/Configure JDKs and changed java from 1.3.1I suggest you go to the project properties and define this class to be the main class so that when you click the green triange in the tool bar it knows what to run and hopefully works out the dependancies A side issue - JBuilder seems to be using Java 1.3.1 internally, as someThe version of Java that JBuilder uses to run itself is defined in a *.conf file in c:\JBuilder\bin depending on what version you have while the version of Java that is used to run the application is defined in the project properties. They can be different ============================== There was no resources entry in the upper-left page. I did an "Addthe program now runs. Thanks Bob! From JMRIDemo I can open DecoderPro,select devices, etc.Maybe JBuilder Personal expects the resource definition to also be in the home directory along with the library definitions ================ It looks like you've got the 1.4 "runtime environment" (JRE) and the 1.3 "Software Development Kit" (SDK) installed. The runtime probably doesn't have the RMI compiler, so with JB using 1.4, it can't find that. The problem with this theory is, if it's using a 1.4 runtime, why did it even find the java compiler (javac)?JBuilder does not use the JDK javac it uses its own internal compiler which can sometimes generate slightly different code to javac and consequently generate a different class signature that affects things like Serialization etc so you need to be aware of that if you are mixing builds from JBuilder and ANT together. We got caught out with this and had to go and define the SerialVer class variables to override this behaviour. I'm not sure about the RMI issue though. Only having a JRE and not a JDK will probably cause this problem. I thin you will need a full JDK to sort this or just run with the JDK that comes with JBuilder. I think it is a full JDK ================= We maybe able to create separate project files one for each of the main programs ie JMRIDemo, DecoderPro etc to work around the JBuilder Personal limitations I'll have to download a JBuilder Personal edition and have a play around. Cheers Alex |
Locked
Re: Need help compiling and running JMRI
Robin Becker
toggle quoted message
Show quoted text
-----Original Message-----
From: Bob Jacobsen [mailto:Bob_Jacobsen@...] Sent: Wednesday, August 14, 2002 10:51 AM To: jmriusers@... Subject: RE: [jmriusers] Need help compiling and running JMRI At 10:22 AM -0700 8/14/02, Robin Becker wrote: >I can't run panels however - New Panel and Load both generate errors. > >java.lang.NullPointerException > at javax.swing.ImageIcon.<init>(Unknown Source) > at jmri.jmrit.catalog.NamedIcon.<init>(NamedIcon.java:18) > at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:210) > at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:90) > >Ok, the PanelEditor is trying to load the old turnout icons (like >upper-left) >but the resources only have the new turnout icons (lefthand-east). > >Does this mean the PanelEditor file is not sync'd with the resources >somehow? If you click on the "PanelEditor.java:210", does it take you right to that line? That's a neat way of getting right place in the source file. This trick isn't working for this error. When the error occurs first I just get the following: Hit uncaught exception java.lang.NullPointerException and the display switches to the Event Dispatch Thread. If I hit Resume then I get the additional error list: java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at jmri.jmrit.catalog.NamedIcon.<init>(NamedIcon.java:18) at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:210) at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:90) at jmri.jmrit.display.PanelEditorAction.actionPerformed(PanelEditorAction.java: 32) ... java/classes/resources/icons/smallschematics/tracksegments/os-upper-right-cl osed.gif (or something like that). Is that file there? It should be copied by a similar procedure to the previous file. When did you check out your files? I committed some changes that should fix another problem when loading stored panels yesterday middle-of-the-day-California-time. I also committed just now a change also moves this file to the new name, which is something like os-lefthand-east-closed.gif If you do a "cvs update -d" (the -d has to go _after_ update) from the java/src directory and the java/test directory, your files should get updated to the current stuff, which should (hah!) have this fixed. I did an update and can see that the line in question was changed to fetch the new turnout icon. However I get the same error. As far as I can tell the icon files all exist. Let's go back a bit. With the original problem loading logo.gif, I added "resources" package. This allowed the program to find logo.gif, which is referenced as "resources/logo.gif". When I expand resources in the upper-left window, I see the expected tree structure under it: icons/smallschematics/tracksegments/os-lefthand-east-closed.gif. If I doubleclick the gif it displays fine. Robin |
Locked
Re: Need help compiling and running JMRI
Robin Becker
Bob,
toggle quoted message
Show quoted text
-----Original Message-----
I can't run panels however - New Panel and Load both generate errors. java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at jmri.jmrit.catalog.NamedIcon.<init>(NamedIcon.java:18) at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:210) at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:90) Ok, the PanelEditor is trying to load the old turnout icons (like upper-left) but the resources only have the new turnout icons (lefthand-east). Sorry, the last comment was wrong. I see that both types of turnout icons are included in the resources. This is the line generating the errors: closedIconL = new NamedIcon(ClassLoader.getSystemResource("resources/icons/smallschematics/tra cksegments/os-upper-left-closed.gif"),"resources/icons/smallschematics/track segments/os-upper-right-closed.gif"); The gif exists. I can double click it in JBuilder and see the images. But ClassLoader.getSystemResources() is returning null. Robin |
Locked
Re: Need help compiling and running JMRI
At 10:22 AM -0700 8/14/02, Robin Becker wrote:
I can't run panels however - New Panel and Load both generate errors. If you click on the "PanelEditor.java:210", does it take you right to that line? That's a neat way of getting right place in the source file. That line is where its trying to load the images for the turnouts. It's still trying to load the old file from java/classes/resources/icons/smallschematics/tracksegments/os-upper-right-closed.gif (or something like that). Is that file there? It should be copied by a similar procedure to the previous file. When did you check out your files? I committed some changes that should fix another problem when loading stored panels yesterday middle-of-the-day-California-time. I also committed just now a change also moves this file to the new name, which is something like os-lefthand-east-closed.gif If you do a "cvs update -d" (the -d has to go _after_ update) from the java/src directory and the java/test directory, your files should get updated to the current stuff, which should (hah!) have this fixed. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: Need help compiling and running JMRI
Robin Becker
Bob,
>Found that the line creating the errors is: > > pane1.add(new JLabel(new >ImageIcon(ClassLoader.getSystemResource("resources/logo.gif"),"Decoder Pro >label"), JLabel.LEFT)); > >How do I determine and/or set the search path that is used in the statement >above? Thanks for tracking it that far. This means that the file "resources/logo.gif" didn't get copied into the executable (class/ folder or .jar file, depending on which is in use). Things that could cause this: 1) No "java/src/resources" folder, or the file not in it; this would be a problem in the way I've got the CVS checkout process configured The file exists at c:/ModelRR/DecoderPro/jmri/java/src/resources/logo.gif (The project working directory is set to C:/ModelRR/DecoderPro/jmri) 2) No "resources" entry in the upper-left page of JBuilder, so it doesn't know to look at this. Project -> add is probably the way to fix that. If so, it's a problem with the way that the jmri.jpx file was set up (That's hard for me to see, as the JB version I've got does automatic discovery of files like this as a "convenience") There was no resources entry in the upper-left page. I did an "Add files/packages", selected "packages" and added the resources package and the program now runs. Thanks Bob! From JMRIDemo I can open DecoderPro, select devices, etc. I can't run panels however - New Panel and Load both generate errors. java.lang.NullPointerException at javax.swing.ImageIcon.<init>(Unknown Source) at jmri.jmrit.catalog.NamedIcon.<init>(NamedIcon.java:18) at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:210) at jmri.jmrit.display.PanelEditor.<init>(PanelEditor.java:90) Ok, the PanelEditor is trying to load the old turnout icons (like upper-left) but the resources only have the new turnout icons (lefthand-east). Does this mean the PanelEditor file is not sync'd with the resources somehow? Robin |
Locked
Re: Need help compilling and running JMRI
At 9:17 AM -0700 8/14/02, Robin Becker wrote:
Uncaught error fetching image:Thanks for tracking it that far. This means that the file "resources/logo.gif" didn't get copied into the executable (class/ folder or .jar file, depending on which is in use). Things that could cause this: 1) No "java/src/resources" folder, or the file not in it; this would be a problem in the way I've got the CVS checkout process configured 2) No "resources" entry in the upper-left page of JBuilder, so it doesn't know to look at this. Project -> add is probably the way to fix that. If so, it's a problem with the way that the jmri.jpx file was set up (That's hard for me to see, as the JB version I've got does automatic discovery of files like this as a "convenience") 3) JB doesn't know to copy .gif files as needed. This is a project setting of some kind, I forget which. Let me know if 1 & 2 are ruled out, and I can help track this one down. To bypass the problem, try copying that file to the java/classes/resources folder in your project. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: Need help compilling and running JMRI
Robin Becker
Uncaught error fetching image:
java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(Unknown Source) at sun.awt.image.URLImageSource.getDecoder(Unknown Source) at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source) at sun.awt.image.ImageFetcher.fetchloop(Unknown Source) at sun.awt.image.ImageFetcher.run(Unknown Source) Found that the line creating the errors is: pane1.add(new JLabel(new ImageIcon(ClassLoader.getSystemResource("resources/logo.gif"),"Decoder Pro label"), JLabel.LEFT)); How do I determine and/or set the search path that is used in the statement above? FYI the project working directory is set to: C:/ModelRR/DecoderPro/jmri And the file C:/ModelRR/DecoderPro/jmri/resources/logo.gif exists. Thanks. Robin |
Locked
Need help compilling and running JMRI
Robin Becker
Having a little trouble getting JBuilder to run under Win98 and thought my
toggle quoted message
Show quoted text
experiences might be of some interest. (Please bear with me if some of the terminology is off - I don't really know anything about this stuff!) Got JBuilder and WinCVS installed. Created a project folder, and used WinCVS to checkout the project. Loaded the project in JBuilder, tried to run by selecting an app such as DecoderPro.java, right-clicked on the DecoderPro tab and selecting "Run using defaults" and got lots of errors during the compile. Tried the approach suggested below, compile errors went away but now get "Could not find the main class. Program will exit" msg from the Java Virtual Machine Launcher. Undid the approach suggested below. Went to Tools/Configure Libraries, found a JMRILibraries entry with no files. Added the 7 jmri lib files to JMRILibraries and the App compiles without errors but still generates "Could not find main class" error. Closed JBuilder. Tried to run installed version of JMRIDemo and found it would no longer run. I was using Java 1.4.0_01 and it turned out that the JBuilder install changed the Windows Registry entry back to 1.3.1. Reinstalled Java 1.4.0 and JMRIDemo runs fine. Opened JBuilder. Went to Tools/Configure JDKs and changed java from 1.3.1 which came with JBuilder to 1.4.0_01 which I had previously installed on this PC. Same result - "Could not find main class". Right-clicked on the DecoderPro tab and selected "Make DecoderPro.java" and got "build succeeded with 12 files built" Now tried "Run using defaults" and no errors, tab at the bottom shows a green arrow next to DecoderPro and a red Reset button above it. However nothing further happens (no screen display from the app). Stopped DecoderPro and selected JMRIDemo.java. Tried "Run", got "Could not find main" error. Did a "Make" and then "Run", and the Hexfile window opens on the screen but nothing further happens. Discovered that there was a message area in JBuilder, but the default height was so small that nothing showed up. I expanded this area and discovered the following error: Uncaught error fetching image: java.lang.NullPointerException at sun.awt.image.URLImageSource.getConnection(Unknown Source) at sun.awt.image.URLImageSource.getDecoder(Unknown Source) at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source) at sun.awt.image.ImageFetcher.fetchloop(Unknown Source) at sun.awt.image.ImageFetcher.run(Unknown Source) Went back and retried DecoderPro.java and saw that the same error messages occured. So at least this is progress :-) Appreciate any help on what I should try next. A side issue - JBuilder seems to be using Java 1.3.1 internally, as some video display problems in DecoderPro that were cleared up when I went to Java 1.4.0 are present in JBuilder (screwed up text when using vertical scrollbar). Is there a way to tell JBuilder to use Java 1.4.0? Thanks. Robin Becker Tucson, AZ -----Original Message-----
From: sixth_rule [mailto:sixth_rule@...] Sent: Tuesday, August 13, 2002 10:29 AM To: jmriusers@... Subject: [jmriusers] Re: Compilling and running JMRI I actually got it to compile strait up i went into Tools Configure JDK's and added in the 7 .jar files from the library |
Locked
CV 7 values
Michael Mosher
I've added some entries intothe CV7 database, but while comparing to other
entries, some Digitrax values appear suspect. I got the data from saved PR1 DOS files, which were probably read using paged mode and it appears soem Digitrax decoders don't reprot the correct value in paged, so I will re read those ones using physical, but that won't happen 'til mid next week at the earliest. Michael Mosher Webmaster Daylight Division PCR/NMRA www.trainweb.org/daylight Golden Empire Historical & Modeling Society www.trainweb.org/gehams San Luis Obispo Model Railroad Club www.trainweb.org/slomrc Personal Member Kern County Live Steamers www.trainweb.org/kernctyls |
Locked
K i got Cvs to work but now JMRIDemo won't or Decoder Pro Won't Run
sixth_rule
I did get LocoTools to run but whenever i try to run JMRIDemo i get
the following message at the bottom of the screen C:\JBUILDER7\JDK1.3.1\bin\javaw -classpath "C:\jb1.0.3 \java\classes;C:\JBuilder7\lib\junit.jar;C:\JBuilder7 \lib\unittest.jar;C:\JBUILDER7\JDK1.3.1 \demo\jfc\Java2D\Java2Demo.jar;C:\JBUILDER7\JDK1.3.1 \jre\lib\i18n.jar;C:\JBUILDER7\JDK1.3.1\jre\lib\jaws.jar;C:\JBUILDER7 \JDK1.3.1\jre\lib\rt.jar;C:\JBUILDER7\JDK1.3.1 \jre\lib\sunrsasign.jar;C:\JBUILDER7\JDK1.3.1\lib\dt.jar;C:\JBUILDER7 \JDK1.3.1\lib\htmlconverter.jar;C:\JBUILDER7\JDK1.3.1 \lib\tools.jar;C:\jb1.0.3\lib\collections.jar;C:\jb1.0.3 \lib\comm.jar;C:\jb1.0.3\lib\crimson.jar;C:\jb1.0.3\lib\jdom- jdk11.jar;C:\jb1.0.3\lib\junit.jar;C:\jb1.0.3\lib\log4j.jar;C:\jb1.0.3 \lib\Serialio.jar" apps.JmriDemo.JMRIdemo java.lang.NoClassDefFoundError: apps/JmriDemo/JMRIdemo Exception in thread "main" also i have a huge amount of errors on the left side of the screen Stuff like JMRIDemoConfigAction not found in class JMRIDemo.JMRIDemo at line 35, 38, & 41 and 39 other errors that look like Cannot Acceses class jmri.jmrix.loconet.hexfile.LnHexFileAction; file jmri.jmrix.loconet.hexfile.LnHexFileAction not found at line 53 all but two of the errors involve files called somthingAction 2 of them involve somthingmenu was i supposed to set a class path for this whole thing?? |
Locked
Re: DecoderPro / Digitrax DN146A decoder
Mr_Mike_M
--- In jmriusers@y..., Bob Jacobsen <Bob_Jacobsen@l...> wrote:
At 9:25 AM -0400 8/13/02, Maloney, Michael wrote:It knowsAll- 105.it's Digitrax, but doesn't know the version, which from CV8(?) is for the FX and get somelighting. However, I was able to choose one of the FX decoders recognize it viaof the FX lighting to work. where isIDENT? the "Lights"that info)?Have you got the 1.0.3 version of the program? It seems to show FX pane. Note that you've got to be using the "Comprehensive"now, as nobody had even mentioned seeing a 105 there. I've changed thereliable.
|
Locked
Re: DecoderPro / Digitrax DN146A decoder
Mr_Mike_M
Bob-
I have the basic 1.0 release from SourceForge, downloaded about a week ago. I noticed the the 1.0.4 test version loaded on a different PC has the proper settings, so I just d/l'ed it to the layout's PC. Strange about the version "105" on the DN146. I wonder how long the dealer had this one in stock!! regards, Mike M. Have you got the 1.0.3 version of the program? It seems to show FXthe "Lights" pane. Note that you've got to be using the "Comprehensive"now, as nobody had even mentioned seeing a 105 there. I've changed thereliable.
|
Locked
Re: Decorder pro
Michael Mosher
Winzip files can be created to span floppy disks, just use it to zip the
toggle quoted message
Show quoted text
downloaded files across multiple disks. The Java runtime is vary large, over 9 meg. Some version of Windows have a option called direct cable connection, that uses a special serial or parallel cable to transfer files between computers, but I never used it. Michael Mosher Webmaster Daylight Division PCR/NMRA www.trainweb.org/daylight Golden Empire Historical & Modeling Society www.trainweb.org/gehams San Luis Obispo Model Railroad Club www.trainweb.org/slomrc Personal Member Kern County Live Steamers www.trainweb.org/kernctyls ----- Original Message -----
From: "nhn1758" <wendellcamp@...> To: <jmriusers@...> Sent: August 13, 2002 03:37 PM Subject: [jmriusers] Decorder pro I want to down load decoder pro . can I down load to floppy dis so I |
Locked
Re: Racetrack
Mark Gurries
I agree that this would be useful.
It is true that a closed loop interface with the loco would be the best solution. But I bet most people will not take the time to do anything that complicated. I expect most people would simply mark two points on the layout with a known distance and time it. Hence I would go with the easiest approach and let the user determine how to make the speed measurement. In the programs most basic form, the user enters the known test track length. At most it would provide a timer function where the user hits a key to stop and start the timer and which time when it stops, the speed is calculated. But I propose something more MANUAL but elegant from a user point of view. Here is how I think the program should work from this point of view. (Clearly other more Automatic operation modes could be supported at the same time.) PROGRAM OPERATION: The program starts and a user enters a locomotive address to be tested. Speed is set to zero and user is instructed to place the locomotive on the test section. Clinking that window away, the locomotive database is called up and a pane pops up showing the current speed steps along with Kick, Start, Mid and Max values. The user is then told that the Acceleration and Deceleration CV will be set to Zero and restored when all the test are done. (this may be presented as a choice to the user with a note as to why) The user is then presented with two mode of operations. Continuous loop running or back and forth. (more on that later). If not save in a preference file, the user is also asked for a the distance between the two start and stop points of the test section. If it is a loop, you could also provide a calculator for the length in the program. Obviously the longer and straighter the test section, the more accurate the measurement. But in most cases, people are more interested matching the locomotive relative speeds as opposed to making a speed step match an accurate scale speed. Anyway.... The user is then given the choice of setting one of the following test: 1) KICK, START V, 1st SPEED TABLE setting 2) START V, MID V, MAX V 3) SPEED TABLE. The program then opens to a panel with a manual throttle and the appropriate variables shown. =========== TEST #1 (KICK) This test should be run first for it can effect the results for Start Voltage or the lowest speed steps in the Speed Table. The window open and presents the START V and the first Speed Step of the Speed table. (The user need to make sure the track is clean!) The user must then choose START V or 1st Speed Table value to be set. The program then enables the value chosen by turning off or on the speed table setting. The test comes in two phases. First phase is Setting the Start Voltage or First Speed Table value. Second is setting the kick start value. The concept behind this test is to first establish the minimum speed that can be sustained coming down from a running position so that Kick start is NOT involved. Once the values for START V or 1st SPEED TABLE variable are determine, we go to Kick start phase. Here the kick start value is adjusted so that from a stopped position, the first throttle speed step setting gets the locomotive to run reliable at the value established by in the first phase. First Phase: The engine is placed on the test track behind a marked starting point. A) From a stop condition, the clicks on the START button which starts the test by starting the loco. The loco starts at a medium speed that is high enough to guarantee motion. A timer is started to prevent runaway. If the timer times out, we go to D step. B) The users Click the TEST button which then changes the the Speed Step to 1. The Countdown timer is re-started to prevent loco runaway if there is no response on the next step. C) The user is then asked to observe the locomotive and click one of two buttons labeled STALLED or MOVING on the screen. The locomotive is stopped when a button is pressed or the timer times out. If the MOVING button is pressed, we skip to step G If the time times out, we got to step H. STALL BUTTON IS PRESSED D) If the Stall Button is pressed, the user is asked to PRESS the VERIFY KEY. The VERIFY key sends a new speed step value that would guarantee the locomotive should move. A timer starts to prevent runaway again. E) The user is then asked if the locomotive started again. IF yes, then the STALL is verified because the CV value is to low as opposed to dirty track. Proceed to Step F below. IF no, then the test must be repeated by first fixing the locomotive via a note to the user and then proceeding to step H STALL VERIFIED F) If the stall is verified, the CV value is reset to the PREVIOUS value which we knew the Loco DID NOT stall at. The system then restores the Accel and Deceleration CV's. The user is told the Test Phase 1 is complete. Goto step H. MOVING BUTTON IS PRESSED. G) If the moving button is pressed, then the CV value is lowered in preparation for the next test. RESET TEST H) The user then holds down a key which reverses the engine back to the starting point again. Releasing the key stop the engine. IF the test is NOT COMPLETE we Goto Step A. ELSE we exit to second phase. ---------------- Second Phase: KICK START The kick start value is first set to 1. A) From a stop condition, the clicks on the START button which starts the test by setting the speed step to 1. A timer is started to prevent runaway. If the timer times out, we go to H step. B) The user is then asked to observe the locomotive and click one of two buttons labeled STALLED or MOVING on the screen. The locomotive is stopped when a button is pressed or the timer times out. If the MOVING button is pressed, we skip to step G. If the time times out, we got to step H. STALL BUTTON IS PRESSED D) If the Stall Button is pressed, the user is asked to PRESS the VERIFY KEY. The VERIFY key sends a new speed step value that would guarantee the locomotive should move. A timer starts to prevent runaway again. E) The user is then asked if the locomotive started again. IF yes, then the STALL is verified because the KICK START value is to low as opposed to dirty track. Proceed to Step F below. IF no, then the test must be repeated by first fixing the locomotive via a note to the user and then proceeding to step H STALL VERIFIED F) The KICK start value is too low and must be incremented by one and the test repeated. MOVING BUTTON IS PRESSED. G) If the MOVING is verified, the CV value is correct. The system then restores the Accel and Deceleration CV's. The user is told the TEST IS COMPLETED. Exit. RESET TEST H) The user then holds down a key which reverses the engine back to the starting point again. Releasing the key stop the engine. ===================== TEST #2 (STRT,MAX) and TEST#3 (SPDTBL) For Test #2 and #3 above, the user chooses which variable to be tested or adjusted. If TEST#1 was performed, the STATV and First Speed Step are locked out by default. The user is given the option of unlocking them. Also note that when the timer is running, the user is not allowed to adjust any values. Only stop is allowed. The program then proceeds to the test phase. Test Phase: As mention before, I see two operator modes of operations. LOOP and BACK AND FORTH The engine is placed on the test track at one end before the start mark. From a stop condition, the user Hits (pressing momentarily) the control key starts the test by starting the loco. 1) LOOP. The engine is place on a section of track in a form of a loop. A) The users hit the key again to start the timer when the loco passes the mark. B) When the loco passes the same mark after completing one pass around the loop, the key is hit again, the timer stops and the speed is calculated. However the engine continues running around the loop in preparation for the next test. During this lap, the user can change the CV value. C) Go to step A above. 2) BACK AND FORTH. This simply means that the engine is on a section of track that is not continuous. The engine must go back and forth to be tested. (This would work for loop too and might be faster!) Here is the procedure: A) The users hit the key again to start the timer when the loco passes the start mark. B) When the loco passes the stop mark, the key is hit again, the timer stops and the speed is calculated. At the same time the engines is also stopped. The user can change the CV value at this time. C) Press and HOLDING the key again allows the engine to move again in the same direction but at a slow speed to make sure it goes past the mark in preparation for a run in the opposite direction. D) Releasing the key stops the engine then changes direction and starts the engine again. E) Go to step A above. Pressing the key twice in a row in quick succession stops the test and restores the Accel and Deceleration CV's. A Display always tell the user what state the system is in a what to do next. The idea is to make as much of the control hands off as much as possible. So there it is....... Mark Gurries Michael Mosher wrote: I've been contemplating creating a program similar to Racetrak that talked Hi- Best Regards, Mark Gurries Linear Technology Power Supply & Battery charger Applications Engineer/Manager --------------------------------------------------------- Model Railroad Club and NMRA DCC presentations are at: -------------------------------------------------------- Audio Enthusiast (Love SAE equipment) ---------------------------------------------------------- |
Locked
Re: Decorder pro
I want to down load decoder pro . can I down load to floppy dis so I(Sorry, hit send too soon on that last one. I really need to get some sleep...) If the laptop has a CD drive, write me off-list with your mailing address and I can send you a CD with all the needed installers, including Java. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: Decorder pro
At 10:37 PM +0000 8/13/02, nhn1758 wrote:
I want to down load decoder pro . can I down load to floppy dis so IDoes the laptop have Java already installed? That's a pretty big installer, and I don't know if its available in parts. The DecoderPro installer is just under 2MB. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
Locked
Re: CVS
At 10:18 PM +0000 8/13/02, sixth_rule wrote:
i downloaded wincvs went admin commandline and typed in this exactI think the \n (which might have been a newline or carriage return you typed in the window) is the problem. Bob -- -------------- Bob Jacobsen (Bob_Jacobsen@..., 510-486-7355, fax 510-495-2957) |
to navigate to use esc to dismiss