elu Posted March 3, 2011 Share Posted March 3, 2011 I am planning to use a usb based digital storage scope model : DSO-2150 USB supplied by hantek The supplier is providing the SDK and DLL for VC6 I want to read the data from this device using Daqfactory base, all the while I was only using labjacks. Please help me in accessing data from this device. Looking forward for your email as always, thanks in advance Best Regards T.Elavarasan Link to comment Share on other sites More sharing options...
AzeoTech Posted March 3, 2011 Share Posted March 3, 2011 Do you want to stream data (i.e. > 50hz sample rate), or just poll? I'm sorry, I don't have a .rar decompressor. Can you post just the manual for the SDK and the .h header file? Link to comment Share on other sites More sharing options...
elu Posted March 3, 2011 Author Share Posted March 3, 2011 i have attached the files in txt format SDK_manual.txt SDKDLL_dot_h.txt Link to comment Share on other sites More sharing options...
elu Posted March 3, 2011 Author Share Posted March 3, 2011 yes, i want to stream data Link to comment Share on other sites More sharing options...
AzeoTech Posted March 3, 2011 Share Posted March 3, 2011 Well, at least it doesn't use a callback, but it is unclear how you stream data through this API. Link to comment Share on other sites More sharing options...
elu Posted March 4, 2011 Author Share Posted March 4, 2011 The supplier has also given a VC project folder, request you to have a look at the files if it can give any clue to stream data. thanks VCProject.zip Link to comment Share on other sites More sharing options...
AzeoTech Posted March 4, 2011 Share Posted March 4, 2011 Well, as I thought, this system does not use callbacks, which is good since DAQFactory doesn't support callback's through extern. It looks like its using the sdChannelDatraBuffer() or sdChannelInGND() and sdGetDisplayData functions to retrieve whatever data is in their internal streaming buffer. They just cycle and hit these functions on a timer to keep the buffer empty and get data into the system. So, this can be done using extern() in DAQFactory. First you'd have to get all the functions working so you can call them in DAQFactory, and then you can use the patterns they provide for streaming. It appears these functions returned data in word format so you'll need to use the appropriate To.Word() function to convert the byte buffer to words. That all said, while an reasonable C programmer could probably get it working in an hour or so with the hardware in hand, if you don't know C and data types its going to take you a lot longer and you will likely crash your computer a number of times in the process. I'm not trying to discourage you, just make you aware that extern() is a more advanced function. Link to comment Share on other sites More sharing options...
elu Posted March 5, 2011 Author Share Posted March 5, 2011 Thanks for the goodnews, i will try this method once i get the device. the device should be in my hand in a couple of days. i shall also put somebody who is good in C programming. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.