|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#31
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
I'm digging up an old thread here, but I wonder if I can ask for tech support with Ether's drivetrain simulator.
I've edited the drivetratinModel.bat file as instructed in the readme, but when I try to run the executable in windows it doesn't write a new file as expected. Running it in the shell (cmd.exe) gives me "error environment variable filename not defined". I've used this simulator in the past, but I can't remember doing anything differently. It's very handy, if a bit clunky to use. I have a personal rule not to trust any 3rd party calculator unless I can verify it with an independant one. I'd like to run Ether's code to verify the WCP calculator (http://www.wcproducts.net/how-to-drivetrain/) and to plot some acceleration curves. This reminds me that I've been meaning to build a GUI for Ether's code... |
|
#32
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
Hi Brendan, Just saw your post. I will try to help you solve the problem. In Windows, file extensions of the type "exe" have priority over extensions of the type "bat" when searching for a file to execute when the filename (without extension) is typed in a command window. So when you type the filename "drivetrainModel" without extension, it executes drivetrainModel.exe instead of drivetrainModel.bat... and the bat file never gets executed and so it never has a chance to set the environment variables that the exe file is expecting. There are 3 different ways to solve the problem you are seeing: 1) Force windows to execute the bat file by typing the full filename with the extension: drivetrainModel.bat 2) Rename the bat file to a different name, like for example "test.bat". Then just type "test" in your command window. Assuming there is no "test.exe" in the default directory, Windows will find "test.bat" and execute it. 3) Don't use a command shell. Instead, navigate to the folder in Windows and double-click on the drivetrainModel.bat file Two more things to be aware of: a) In your post, drivetrainModel is mis-spelled as "drivetratinModel.bat". b) If you edited the bat file to use a filename with spaces in it, you should put the filename in quotes, like this: "my filename.CSV" Please let me know if this fixes the problem. Last edited by Ether : 13-01-2017 at 13:19. |
|
#33
|
||||
|
||||
|
Re: paper: Drivetrain Acceleration Model
That solves it! I was running the executable, not the .bat file. My mistake, thanks!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|