Electronic Engineer Discuss

View: 8319|Reply: 0
Print Prev. thread Next thread

汉泰虚拟示波器二次开发 问题

[Copy link]

3

Threads

10

Posts

10

Credits

新手上路

Rank: 1

Credits
10
Jump to specified page
1#
Post time 2016-10-17 13:09:24 | Show the author posts only Reply Awards |Descending |Read mode
1。官网下载的SDK DEMO编译提示
fatal error C1083: Cannot open include file: '..\\..\\HeadFiles\\DefMacro.h': No such file or directory
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory

请问到哪里去找这两个文件?

2。函数 dsoHTGetData(m_nDeviceIndex,pReadData[CH1],pReadData[CH2],pReadData[CH3],pReadData[CH4],&m_stControl);

DEMO中有个注释:每通道i第j个点的实际电压值=(pReadData[i][j]-m_nLeverPos[i])*8*电压值/255


问,我需要把pReaData中的读数按上面的公式求逆,然后计算出实际电压值在显示吗?


3。dsoHTGetData函数。在DEMO程序实际显示时,又是调用下面的函数对pReadData通道的读数进行校正,怎么回事?不是按2中的方法校正的?


void CHard::SourceToDisplay(USHORT* pData,ULONG nDataLen,USHORT nCH)
{
        for(ULONG i=0;i<nDataLen;i++)
        {
                *(m_pSrcData[nCH]+i) = *(pData+i)-(MAX_DATA - m_nLeverPos[nCH]);
        }
}


Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Dark room|Mobile|Archiver|Electronic Engineer Discuss

2024-4-20 06:37 GMT+8 , Processed in 0.151426 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list