Title: C# project for Hantek6074BC [Print this page] Author: Jambyl Time: 2018-8-20 19:05 Title: C# project for Hantek6074BC Good day!
I bought the Hantek 6074BC and I'm developing a program that needs to take data from the device and determine the peaks.
Peak points should be sent to the server with time. The program is developed on c #.
I already connected the .dll library to the program and the initialization was successful and I can not get the data
A
1 dsoHTCHPos
2 dsoHTVTriggerLevel
3 dsoHTSetTriggerMode
B
1 dsoHTStartCollectData
2 dsoHTGetState
3 dsoHTGetData
You can describe these methods in more detail. I needs every 30 milliseconds to take the data as an array from the device
I can send full project
Help please! Thank you in advance!
Author: oscor Time: 2019-2-9 09:19
Hello Jambyl,
I'm stuck in a similar situation (but with the 6254BC model). Did you finally manage to make it work?
Thanks,
Oscar Author: ArnaudB Time: 2021-8-26 21:30
I have the same problem.
Most of the HTHardDll.dll functions works well, but I have troubles with dsoHTGetData: it always returns 0.
Any ideas ? Author: e_admin Time: 2021-8-27 09:06
Please refer VC demo,it is hard to find the reason;
possible resons:
1 before collect ,call check "status=dsoHTGetState" if the device finished collect,status&2=2
2 many init function is not called please refer to vcdemo
Author: ArnaudB Time: 2021-8-30 21:41
Thanks for your answer e_admin. Now dsoHTGetData returns 1, but I still have troubles to get all the data. According to vcdemo I created 4 arrays of ushort, and sent the pointers to dsoHTGetData. I get back 190 values for CH1 and CH2, and nothing for CH3 and CH4. I expect 8192 values for the 4 arrays so there is a lot missing. I dont know whats going wrong. Here is how I call the function :
ushort[] readBufferCH1 = new ushort[8192];
ushort[] readBufferCH2 = new ushort[8192];
ushort[] readBufferCH3 = new ushort[8192];
ushort[] readBufferCH4 = new ushort[8192];
int result = GetData(Hantek_DeviceIndex, readBufferCH1, readBufferCH2, readBufferCH3, readBufferCH4, stControl);