Go to Post Some clever fellow a few years back made a little scooter based on this principal and made so much on the idea he can afford the finest denim in the land. - phrontist [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > Extra Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #31   Spotlight this post!  
Unread 13-01-2017, 12:34
nuclearnerd's Avatar
nuclearnerd nuclearnerd is offline
Speaking for myself, not my team
AKA: Brendan Simons
FRC #5406 (Celt-X)
Team Role: Engineer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Hamilton, Ontario, Canada
Posts: 458
nuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant future
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...
Reply With Quote
  #32   Spotlight this post!  
Unread 13-01-2017, 13:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,102
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
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.
Reply With Quote
  #33   Spotlight this post!  
Unread 13-01-2017, 14:06
nuclearnerd's Avatar
nuclearnerd nuclearnerd is offline
Speaking for myself, not my team
AKA: Brendan Simons
FRC #5406 (Celt-X)
Team Role: Engineer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Hamilton, Ontario, Canada
Posts: 458
nuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant futurenuclearnerd has a brilliant future
Re: paper: Drivetrain Acceleration Model

That solves it! I was running the executable, not the .bat file. My mistake, thanks!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi