int _tmain(int argc, _TCHAR* argv[]) { rCreateWorld(false, delT, rTimer_MODE_MANUAL); pSHM = getrPanelManipulatorCmdMemory(); startPlot("-ip 127.0.0.1 -port 5158", false); rMakeNetwork(1, 5158); rInitialize(); rAddKeyboardHandler(MyKeyboardHandler, NULL); SetupDAQ(); rActivateWorld(); bRun = true; while (!bQuit) { waitrPanelManipulatorCmdUpdate(50); rSetTime(pSHM->state.time); rUpdate(); } DESTROY_PHYSICS_WORLD(); DESTROY_DATA_ACQUISITION(); closerPanelManipulatorCmdMemory(); return 0; }
BOOL CGraphsWindow::OnInitDialog() { CDialog::OnInitDialog(); m_plot.AddLine(PS_SOLID,RGB(255,0,0)); m_plot.AddLine(PS_SOLID,RGB(0,255,0)); m_plot.GetAxisY().m_color=RGB(0,255,0); m_plot.GetAxisY().m_dMinValue=0; m_plot.GetAxisY().m_dMaxValue=100; m_plot.CalcLayout(); SetTimer(1,100,NULL); startPlot(); return TRUE; };