Thread: Machine Simulation

  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    6

    Machine Simulation

    Hello, Im trying to figure out how to program a serial port with events. I mean, I have a device with some buttons and one footpedal, and I want to use the serial port to transfer the data to a microprocessor and make the simulation.

    how I should do it?

    Is it possible to use events programming in serial port?

    Should I use MIDI port?

    Thanks very much.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Can you be more specific?
    Like which OS/Compiler you have, and which microprocessor you want to simulate

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    6
    Yes:

    The project is a digging machine simulation. I have the cabine, with some buttons and one pedal, the 3D programming is made in C++, I just have to do the device communication program: need to transfer the data input from the cabine to a microprocessor (it doesnt mind which one), and the output to the simulator program (made in Visual C++)

    SO: Windows.

    So... I said first serial port, but is it better parallel port?
    Do u know any C library to do this?

    Please help, I dont know how to undertake this project.

    Thanks!!!

  4. #4
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Yeah go get

    MyMachine.dll

    or

    MyMachine.lib



    Of course there isn't a C library to do this. We are not even sure what you need to do. You must know how to interface with the processor and you must know what it expects in the data stream.

    There is a lot more than just hooking this into that and so forth.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Posts
    6
    yes, sorry if I didnt explain correctly, but Im spanish

    I was asking if u know any library to program serial port, or parallel port.

    Thanks

  6. #6
    Registered User Kybo_Ren's Avatar
    Join Date
    Sep 2004
    Posts
    136
    The Windows API provides functions for reading and writing data to these ports.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Machine Learning with Lego Mindstorms
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 14
    Last Post: 01-30-2009, 02:34 PM
  2. fork, execv, spawn, or something else?
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 01-26-2009, 04:25 PM
  3. Replies: 4
    Last Post: 01-18-2008, 07:05 PM
  4. Porting from 32 bit machine to 64 bit machine!
    By anoopks in forum C Programming
    Replies: 10
    Last Post: 02-25-2005, 08:02 PM
  5. Machine language simulation
    By Nutshell in forum C Programming
    Replies: 5
    Last Post: 06-20-2002, 03:52 PM