Emulation program

This is a discussion on Emulation program within the C Programming forums, part of the General Programming Boards category; I need to write an emulation program that will send a string through the COM port every second or any ...

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    5

    Emulation program

    I need to write an emulation program that will send a string through the COM port every second or any other pre-determined time sequence. I have the code to open the COM port but I dont know how to do the other part of continuously sending the string.

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    5

    Emulation prog

    The emulation could run on Win 95, 98 or 2000. I have machines for these. Still trying the attached link.
    Thanks

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,161
    Each compiler may have it's own 'delay' or 'sleep' function which may work.

    Otherwise, look into the standard time() and related functions to create a timing loop.

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    175
    Can you define ur requirment in detail and for what are u developing this emulator?

    pl let me know.

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    5
    Walt, the purpose of the prog is to send strings though the serial port. The program will ask for a string to send and send that string at a specified spped (every second, 2S, 3S etc)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 12:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 12:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 09:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21