Electronic Engineer Discuss

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

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

[Copy link]

2

Threads

4

Posts

4

Credits

新手上路

Rank: 1

Credits
4
Jump to specified page
1#
Post time 2022-7-6 17:21:25 | Show the author posts only Reply Awards |Descending |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-4-29 17:20 GMT+8 , Processed in 0.209974 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list