Click here to Skip to main content
15,899,937 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Ride Control System Pin
jhwurmbach1-Oct-03 23:44
jhwurmbach1-Oct-03 23:44 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 3:09
David Chamberlain2-Oct-03 3:09 
GeneralRe: Ride Control System Pin
jhwurmbach2-Oct-03 5:36
jhwurmbach2-Oct-03 5:36 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 6:31
David Chamberlain2-Oct-03 6:31 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 5:47
immanis2-Oct-03 5:47 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 6:49
David Chamberlain2-Oct-03 6:49 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 9:07
immanis2-Oct-03 9:07 
GeneralRe: Ride Control System Pin
David Chamberlain2-Oct-03 9:52
David Chamberlain2-Oct-03 9:52 
immanis wrote:
In the real world, the vehicle has to deal with many more variables; variables that would be difficult (if not impossible) to model accurately

This is exactly the basis for an object oriented simulation, since each object can be modeled at different levels of detail. Initially, things will be fairly coarse, vehicle motion will probably be simple movement to a new (x,y) location. Later on, you can make it more detailed, and include acceleration, friction, etc.

immanis wrote:
I want to have a live track layout with vehicle location indicators

So, now you're talking about visualization and how the display of the simulation data becomes usable to a user. I recommend being able to log the simulation states to a file so that later on they can be replayed, perhaps against 2 or more sets of control logic to see which one is preferable. Having controllable inputs becomes critical in simulation design and testing.

immanis wrote:
Auto mode would be the long term simulation mode, where time could be accelerated, and the station vehicles would be advanced automatically

Remember that the time it takes for the computer to simulate the advances from one state to the next will most likely be much faster than how you want that displayed to the user. One strategy would be to increment your local time counter, advance the simulation to the next state, wait for the clock time to catch up, and then display that new state. In this way, user inputs could affect the environment, and the display proceeds at "real" time. For auto mode, to monitor what is going on, you can still provide the display but just not wait for clock time to catch up. Increment time, advance states, display versus increment time, advance states, wait, display.

With operator input being required in certain modes, you could also use this as a training aid and help operators learn what happens when they screw up the schedule, or how to maximize customer throughput.

And the display object can be arranged such that sometimes vehicle movement is displayed and at other times operational parameters are displayed, such as average times, delays, etc.

Overall, what you are describing is called a man-in-the-loop simulation, if you are counting on someone to control the vehicles. At some point, you could also connect some of the hardware sensors or controls and have a hardware-in-the-loop simulation. Both MITL and HWIL simulations are quite useful in many professional (job, paying) areas, so congratulations on being involved.

Dave



"You can say that again." -- Dept. of Redundancy Dept.
GeneralRe: Ride Control System Pin
immanis2-Oct-03 12:21
immanis2-Oct-03 12:21 
GeneralRe: Ride Control System Pin
David Chamberlain3-Oct-03 3:10
David Chamberlain3-Oct-03 3:10 
GeneralRe: Ride Control System Pin
immanis3-Oct-03 6:23
immanis3-Oct-03 6:23 
GeneralRe: Ride Control System Pin
David Chamberlain3-Oct-03 6:57
David Chamberlain3-Oct-03 6:57 
GeneralRe: Ride Control System Pin
immanis3-Oct-03 10:18
immanis3-Oct-03 10:18 
GeneralRe: Ride Control System Pin
immanis2-Oct-03 13:30
immanis2-Oct-03 13:30 
GeneralClose a document programatically Pin
Kok Meng Cheong1-Oct-03 20:51
Kok Meng Cheong1-Oct-03 20:51 
GeneralRe: Close a document programatically Pin
David Crow2-Oct-03 3:22
David Crow2-Oct-03 3:22 
GeneralRe: Close a document programatically Pin
Kok Meng Cheong2-Oct-03 15:13
Kok Meng Cheong2-Oct-03 15:13 
GeneralRe: Close a document programatically Pin
David Crow3-Oct-03 2:56
David Crow3-Oct-03 2:56 
QuestionHow can I read a 'gif' file Pin
Anonymous1-Oct-03 20:28
Anonymous1-Oct-03 20:28 
AnswerRe: How can I read a 'gif' file Pin
KaЯl2-Oct-03 4:44
KaЯl2-Oct-03 4:44 
Generalautorun USB flash memory stick Pin
closecall1-Oct-03 19:49
closecall1-Oct-03 19:49 
GeneralMaking an Application Still Image-Aware Pin
shlim881-Oct-03 16:31
shlim881-Oct-03 16:31 
GeneralI need to make this more compact. Pin
esepich1-Oct-03 14:13
esepich1-Oct-03 14:13 
GeneralRe: I need to make this more compact. Pin
Maximilien1-Oct-03 14:30
Maximilien1-Oct-03 14:30 
GeneralRe: I need to make this more compact. Pin
Terry O'Nolley1-Oct-03 15:34
Terry O'Nolley1-Oct-03 15:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.