• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

ActiveX mastery for DATAQ A/D Module

DocBubbles

New Member
I am developing a Medical Diagnostic that works by measuring intervals from 20ms to 100s. I had it working in VBA so that the time measured was transferred to Excel 2003 and plotted simultaneously. That was then, running on XP that I decided to upgrade. Well the old A/D modules were not compatible with Win 7 so I had to buy a new module, that is a DATAQ DI-155HS. This module has multiple channels with 7 selectable gains. So the ActiveX commands are two new ones that I can not master. The manufacturer "help" will not help me. Those new commands are:

DataqSdk1.ADChannelCount = 1 watch only one channel
DataqSdk1.ADChannelList(ChannelList) = 1
DataqSdk1.ADGainList(GainList) = 3

These are defined in the Dim list as Integers.

I want to start with only channel 1 to have a range of ±10V which is designated by an Index of 3 . This is shown in the lines above. Without those lines it works but at a voltage range of ±50V, and that makes the actual output very small. If I actually insert values for the channel and its gain Index, the VBA program dies.

I am not entering these commands correctly and totally dumbfounded.

As I figure it, I have variables of ChannelList (I want Channel 1 to be active) and GainList (I want index 3, ±10V). I believe the explanation of ChannelList is incorrect, there is a Channel (0) which should be the real Channel 1, but is also explained as Channel 0. Something wrong there.

Now that everyone's mind is messed up by this, can someone explain? I can't be the only user of a multichannel A/D module.

(I could copy the instructions for these statements).

Thanks.
 
Hi ,

I think you might get a better response if you post your problem here :

http://www.dataq.com/support/live-agent/

Narayan

Thanks, but I have had NO help on this from Dataq. I went to that site and there was only one inquiry that I found and that was using a competing software company, UltimateSerial. I am trying to do this within the Dataq ActiveX statements.

I believe that I have figured out the following:

DataqSdk1.ADChannelList(ChannelList)
ChannelList(0) = 1
DataqSdk1.ADGainList(GainList)
GainList(0) = 3

I still have to set up a SampleRate.

I will try this. I have written several times to Support for Dataq, and they have become much less reticent than they were several years ago. In the mean time I have become quite frustrated and given up for several months. I need to get my sensor working. I had asked them to put me in touch with someone who uses the DI-155HS module but they won't even do that.


Again, I would rather not ask at Dataq at the moment.
 
Hi ,

In that case , can you post a link to the User Manual or what little documentation of the A/D module there is on the Internet ?

Narayan
 
Back
Top