MachineInterfaceDll.dll新增IO口读写设置。

This commit is contained in:
TAO Cheng
2014-05-12 21:51:02 +08:00
parent 9559827310
commit 58b492b6fb
14 changed files with 412 additions and 113 deletions
@@ -382,7 +382,7 @@ BOOL CART_PCI8622::GetData(double (*_Data)[HALF_SIZE_WORDS],int* _DataNumber)
{
ADData = ((ADBuffer[m_SegmentID][Index]));
// 将原码转换为电压值
dVolt = static_cast<double>(((m_AD_LSB_MAX/m_AD_LSB_RANGE) * ADData - m_AD_LSB_HALF));
dVolt = static_cast<double>(((m_AD_LSB_MAX/m_AD_LSB_RANGE) * (ADData&0xFFFF) - m_AD_LSB_HALF));
_Data[nADChannel][_DataNumber[nADChannel]]=dVolt;
_DataNumber[nADChannel]+=1;
nADChannel++;