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.
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.