Please select To the mobile version | Continue to access the desktop computer version

Electronic Engineer Discuss

View: 2881|Reply: 0

6254EU二次开发读取不到数据

[Copy link]

2

Threads

4

Posts

4

Credits

新手上路

Rank: 1

Credits
4
Post time 2022-7-6 17:21:25 | Show all posts |Read mode
memset(m_pDeviceStatus, 0, 128);
        //cout << "m_pDeviceStatus: " << (int)m_pDeviceStatus[0] << endl;
        WORD state=dsoHTGetState(m_nDeviceIndex, m_pDeviceStatus);
        //cout << "m_pDeviceStatus: " << (int)m_pDeviceStatus[0] << endl;
        //cout << "dsoHTGetState: " << state << endl;

        if (!(m_pDeviceStatus[0] & 2))
        //if (!(state & 2))
        {        cout << "数据不可读取" << endl;
                return false;}

打印了一下m_pDeviceStatus[0]=56,这是什么意思,用的VCdemo里的代码


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-3-29 19:56 GMT+8 , Processed in 0.155918 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list