Electronic Engineer Discuss

View: 9881|Reply: 4
Print Prev. thread Next thread

关于6104BD二次开发的问题

[Copy link]

1

Threads

3

Posts

3

Credits

新手上路

Rank: 1

Credits
3
Jump to specified page
1#
Post time 2018-1-4 15:26:48 | Show the author posts only Reply Awards |Descending |Read mode
请教一个问题:
          关于6104BD二次开发,现有程序已经开发大半,发现需要用示波器来实现部分功能,所以采购了Hantek6104BD虚拟示波器,由于原有开发是基于C#做的,很遗憾的是官方没有提供C#例程,自己根据C++的Demo做开发,发现一直无法读取到数据,希望知道的朋友帮帮忙,不胜感激!能提供C#的例程更好!
      
Reply

Use magic Report

1

Threads

3

Posts

3

Credits

新手上路

Rank: 1

Credits
3
2#
 Author| Post time 2018-1-4 15:28:39 | Show the author posts only
@amy,请求帮助

0

Threads

29

Posts

29

Credits

新手上路

Rank: 1

Credits
29
3#
Post time 2018-1-5 09:26:31 | Show the author posts only
可以进行C#二次开发,但没有开发实例,按照C++照抄就可以,出问题要么流程和C++不一样要么函数变量定义不匹配

1

Threads

3

Posts

3

Credits

新手上路

Rank: 1

Credits
3
4#
 Author| Post time 2018-1-5 13:11:39 | Show the author posts only
Hantek_Zhang replied at 2018-1-5 09:26
可以进行C#二次开发,但没有开发实例,按照C++照抄就可以,出问题要么流程和C++不一样要么函数变量定义不匹 ...

能提供例程吗?流程是按照C++的流程来的,但是到DLL_API WORD WINAPI dsoHTGetData(WORD nDeviceIndex, WORD* pCH1Data, WORD* pCH2Data, WORD* pCH3Data, WORD* pCH4Data, PCONTROLDATA pControl)总是获取不到数据!!这个函数变量定义想到的都试了,还是没有数据返回,能不能帮我试下具体该怎么设置!!谢谢

0

Threads

2

Posts

2

Credits

新手上路

Rank: 1

Credits
2
5#
Post time 2022-1-8 13:26:36 | Show the author posts only
dsoHTStartCollectData(gDeviceIndex,1);
result = dsoHTGetState(gDeviceIndex);
                                do
                                {
                                        Sleep(0.5);
                                }while(result < 2);
                                Sleep(2.0);
先调用上面的函数,再读取
You have to log in before you can reply Login | Register

Points Rules

Dark room|Mobile|Archiver|Electronic Engineer Discuss

2024-4-19 21:29 GMT+8 , Processed in 0.148949 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

Quick Reply To Top Return to the list