6254EU can not read the data
memset(m_pDeviceStatus, 0, 128);//cout << "m_pDeviceStatus: " << (int)m_pDeviceStatus << endl;
WORD state=dsoHTGetState(m_nDeviceIndex, m_pDeviceStatus);
//cout << "m_pDeviceStatus: " << (int)m_pDeviceStatus << endl;
//cout << "dsoHTGetState: " << state << endl;
if (!(m_pDeviceStatus & 2))
//if (!(state & 2))
{ cout << "数据不可读取" << endl;
return false;
}
cout << "数据可读取" << endl;
this is the code,the value of m_pDeviceStatus =56,so m_pDeviceStatus & 2 is zero,how does it happen,and how can i read data.
the code is from VCDEMO
Pages:
[1]