freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

玉米莖稈強度測定儀的研制與開發(fā)畢業(yè)論文-資料下載頁

2025-06-28 05:46本頁面
  

【正文】 indow(CREATESTRUCTamp。 cs){ // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs return CRecordView::PreCreateWindow(cs)。}void CQdcdyView::OnInitialUpdate()// 界面初始化{ m_pSet = amp。GetDocument()m_qdcdySet。 CRecordView::OnInitialUpdate()。 GetParentFrame()RecalcLayout()。 ResizeParentToFit()。/******************************************/ (玉米莖稈測定儀)。 (TRUE)。 ///顯示標題 //(0)。 //顯示最小橫坐標 //(1000)。 //顯示最大橫坐標 //(1)。 //設(shè)置精度 (20)。 //橫坐標顯示的網(wǎng)格數(shù) (20)。 //縱坐標顯示的網(wǎng)格數(shù) (200,0)。 (200,0)。 (時間)。 (TRUE)。 //顯示X標題 (TRUE)。 // (0,歷史曲線)。 (61303)。//坐標周顏色//這是綠色 (0)。 //背景顏色 //(0,5)。//顯示不 //(0,0,0,0)。 (0,0)。// 點的標記樣式 (0,0)。//畫線的樣式 (true)。 (0,0,1)。 //(100,100,0)。 // (1,特性曲線)。 (0)。//顯示的樣式 好像是必須把工具欄隱藏 (1)。//顯示曲線的圖標位置 Time=0。 name_file=檢測。 num_file=0。 Date=0。}///////////////////////////////////////////////////////////////////////// CQdcdyView printingBOOL CQdcdyView::OnPreparePrinting(CPrintInfo* pInfo){ // default preparation return DoPreparePrinting(pInfo)。}void CQdcdyView::OnBeginPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/){ // TODO: add extra initialization before printing}void CQdcdyView::OnEndPrinting(CDC* /*pDC*/, CPrintInfo* /*pInfo*/){ // TODO: add cleanup after printing}///////////////////////////////////////////////////////////////////////// CQdcdyView diagnosticsifdef _DEBUGvoid CQdcdyView::AssertValid() const{ CRecordView::AssertValid()。}void CQdcdyView::Dump(CDumpContextamp。 dc) const{ CRecordView::Dump(dc)。}CQdcdyDoc* CQdcdyView::GetDocument() // nondebug version is inline{ ASSERT(m_pDocumentIsKindOf(RUNTIME_CLASS(CQdcdyDoc)))。 return (CQdcdyDoc*)m_pDocument。}endif //_DEBUG//////////////////////////////////////////////////////////////////////// CQdcdyView database supportCRecordset* CQdcdyView::OnGetRecordset(){ return m_pSet。}///////////////////////////////////////////////////////////////////////// CQdcdyView message handlersBEGIN_EVENTSINK_MAP(CQdcdyView, CRecordView) //{{AFX_EVENTSINK_MAP(CQdcdyView) ON_EVENT(CQdcdyView, IDC_MSCOMM1, 1 /* OnComm */, OnOnCommMsm1, VTS_NONE) //}}AFX_EVENTSINK_MAPEND_EVENTSINK_MAP()void CQdcdyView::OnOnCommMsm1() //串口數(shù)據(jù)采集及壓力曲線顯示{ // TODO: Add your control notification handler code here // TODO: Add your control notification handler code here // TODO: Add your control notification handler code here // TODO: Add your control notification handler code here //HDC hdc。 VARIANT variant_inp。 COleSafeArray safearray_inp。 LONG len,k。 FLOAT data,v。 static FLOAT max=0,r=0,w=0,m=0,n=0,Time=0。 //static ULONG 。 //LONG len,k。 //LONG data, v。 //static ULONG Time=0,max=0,r=0,w=0,m=0,n=0。 BYTE rxdata[2]。 //設(shè)置BYTE數(shù)組 An 8bit integerthat is not signed. CString str。 char strtemp[3]。//,t=0。 static char t=0。 //m_strw=0。 //m_strsecond=0。 //m_strmax=0。 //UpdateData(FALSE)。 if(()==2) //事件值為2表示接收緩沖區(qū)內(nèi)有字符 { ////////以下你可以根據(jù)自己的通信協(xié)議加入處理代碼 ////////以下你可以根據(jù)自己的通信協(xié)議加入處理代碼 variant_inp=()。 //讀緩沖區(qū) safearray_inp=variant_inp。 //VARIANT型變量轉(zhuǎn)換為ColeSafeArray型變量 len=()。 //得到有效數(shù)據(jù)長度 for(k=0。klen。k++) (amp。k,rxdata+k)。//轉(zhuǎn)換為BYTE型數(shù)組 data=(rxdata[0]*256+rxdata[1])。//()。 //data=(rxdata[0]*0+rxdata[1]*256+rxdata[2]*16+rxdata[3])。//()。 r=r+data。 /*w=10094*r/819200。//做功 v=data*200/4096。//采集過來的是AD值 m=data*20000/4096。// n=data*200*980/4096。*/ w=10388*r/100/819200。//做功 //v=data*200/4096。//采集過來的是AD值 m=data*200/3000。//計算最大值 //n=m*98/10。//data*200*98/40960。 (%.3f,w)。 m_strw=str。 //(%u,t)。 //m_strt=str。 UpdateData(FALSE)。 if(maxm) { max=m。 (%.2f,max)。 m_strmax=str。 UpdateData(FALSE)。 UpdateData(TRUE)。 GetDlgItemText(IDC_EDIT1, str)。 n=atof(str)。 n=n*。 (%.3f,n)。 m_strn=str。 UpdateData(FALSE)。 v=Time/10。 (%.1f,v)。 m_strsecond=str。 UpdateData(FALSE)。 } if(Time1) {(0,0,1)。} Time=Time+1。 (Time,m,1)。 //if(Time==3) //{ //t=t+1。 //(%u,t)。 //m_strt=str。 //} if(Time==179) { num_file++。 itoa(num_file,strtemp,10)。 (name_file+strtemp)。 } if(Time==180) { v=0,max=0,r=0。 (1)。 (%.2f,max)。 m_strmax=str。 (%.1f,v)。 m_strsecond=str。 n=0。 (%.3f,n)。 m_strn=str。 UpdateData(FALSE)。 (180,0)。 (0,0,1)。 Time=1。 //t+1。 //(%u,t)。 //m_strt=str。 //(name_file+strtemp)。 } if(Time==3) { t=t+1。 (%u,t)。 m_strt=str。 UpdateData(FALSE)。 } } //UpdateData(FALSE)。}void CQdcdyView::OnButton1() //串口控制{ // TODO: Add your control notification handler code here // TODO: Add your control notification handler code here static int i。 m_bOpenPort=!m_bOpenPort。 if(m_bOpenPort) { (聯(lián)機)。 SetDlgItemText(IDC_STATIC1,脫機)。 // (dd)。 if(()) (FALSE)。 // (網(wǎng)絡(luò)關(guān)閉,請先打開網(wǎng)絡(luò))。 } else { (脫機)。 SetDlgItemText(IDC_STATIC1,聯(lián)機)。 (1)。 //選擇3 (9600,n,8,1)。 if( !()) (TRUE)。//打開串口 else AfxMessageBox(沒有發(fā)現(xiàn)此串口或被占用)。 // (網(wǎng)絡(luò)已打開,可進行數(shù)據(jù)傳輸)。 (1)。 //1:表示以二進制方式檢取數(shù)據(jù) (1)。 //參數(shù)1表示每當串口接收緩沖區(qū)中有多于或等于1個字符時將引發(fā)一個接收數(shù)據(jù)的OnComm事件 (0)。 //設(shè)置當前接收區(qū)數(shù)據(jù)長度為0 ()。//先預(yù)讀緩 }}void CQdcdyView::OnSd() //讀取SD卡數(shù)據(jù){ // TODO: Add your mand handler code here // TODO: Add your mand handler code here // TODO: Add your mand handler code here //HDC hdc。 char buffer[4]。 //INT date,m=0。 //LONG data。//, v。 FLOAT data,v。 //static FLOAT max=0,r=0,w=0,m=0,n=0,Time=0。 static FLOAT Time=0,r=0,w=0,n=0,max=0,nt=0。 static long m=0。 //double CS
點擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1