Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

azhari24

@azhari24
About
Posts
15
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Using matlab fuction in VB 6
    A azhari24

    I want use some matlab function in vb. How to connect matlab to vb? and How to use that function. Thx.

    Visual Basic tutorial question

  • package and deployment for VC6
    A azhari24

    okay, i will try your suggest... thank you...

    C / C++ / MFC sysadmin tutorial workspace

  • package and deployment for VC6
    A azhari24

    okay, i will try your suggest... thank you...

    C / C++ / MFC sysadmin tutorial workspace

  • package and deployment for VC6
    A azhari24

    Hey friend, I want to ask, how to make setup from project VC6, like package and deployment wizard in VB. because I want use my project in the other PC without instal VC6. Thank you...

    C / C++ / MFC sysadmin tutorial workspace

  • Microsecond timer
    A azhari24

    okey... thank...

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    okey, thanks do you have sample program?

    modified on Wednesday, September 14, 2011 1:17 AM

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    okey... thank's. i will try your suggest...

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    you have any articles or sample programs?and Can I ask articles or sample program?

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    microcontroller send data every 2 ms, my problem when the microcontroller gets the input, the program can not display the data directly, but must read the entire remainder of the data in the buffer. this is setting port, and recevied data. I use Microsoft Communication Control

    	TRY
    {
    m\_comm.SetCommPort(12); // use port 12
    m\_comm.SetSettings("9600,N,8,1"); // setting port
    m\_comm.SetInputLen(1); // read 1 character
    m\_comm.SetRTSEnable(FALSE);
    m\_comm.SetRThreshold(0);
    m\_comm.SetPortOpen(true); // open port
    UpdateData(FALSE);
    	MessageBox("Port opened successfully");
    }
    CATCH(CException, e)
    {
    	MessageBox("Error opening port");
    }
    END\_CATCH
    

    so I use the clear buffer to clear the buffer. but rather the execution time becomes slow and missing data

    m\_comm.SetInBufferCount(0); // clear buffer
    		}
    

    can you offer some advice?

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    thank you, for your suggestions

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    thank you, for your suggestions

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    thank you, for your suggestions

    C / C++ / MFC

  • Microsecond timer
    A azhari24

    Hi... I have a program to read data from serial port,and I want to repeat the program every 1 microsecond. this is my program, but I just can repeat every 1 milisecond

    void CStripDlg::OnTimer(UINT nIDEvent)
    {
    int dcount=0;
    CString data[4];
    VARIANT in_dat;

    {
    		in\_dat = m\_comm.GetInput(); // read port
    		CString strInput(in\_dat.bstrVal);
    		m\_input.Format("%s", strInput); // show data
    		m\_comm.SetInBufferCount(0); // clear buffer
    		}
    }
    		UpdateData(FALSE);
    CDialog::OnTimer(nIDEvent);
    

    void CStripDlg::OnStart()
    {
    SetTimer(1,1,NULL); // set data 1 milisecond
    }
    }

    thx

    C / C++ / MFC

  • CSting ASCII to decimal Number
    A azhari24

    okey. Thanks for your help.

    C / C++ / MFC tutorial question

  • CSting ASCII to decimal Number
    A azhari24

    how to convert an CString ASCII to decimal number? For example, an "A" alphabet in ASCII table is 65 in decimal number, how can i convert the alphabet to an integer as 65. I get data from serial port MSCOMM VARIANT in_dat; in_dat = m_comm.GetInput(); CString strInput(in_dat.bstrVal); I want conver strInput alphabet to decimal. i'm sorry, I can't speak english fluently. thx

    C / C++ / MFC tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups