Jump to content
  • 0

Analog input and specifying voltage range for USB-1808X


PhilipW

Question

From the USB-1808X data logger, analog input can support different voltage ranges. Ranges include 10 V, ±5 V, 0 V to 10 V, and 0 V to 5 V.

Here is my code:

// allocate arrays
channelArray = new short[numberOfAnalogChannels];
channelTypeArray = new MccDaq.ChannelType[numberOfAnalogChannels];
gainArray = new MccDaq.Range[numberOfAnalogChannels];

for (int channelNumber = 0; channelNumber < numberOfAnalogChannels; channelNumber++)
{
    channelTypeArray[channelNumber] = MccDaq.ChannelType.Analog;
    channelArray[channelNumber] = (short)channelNumber;
    gainArray[channelNumber] = MccDaq.Range.Bip5Volts;
}

Here are some constants from MccDaq.Range:

namespace MccDaq
{
    public enum Range
    {
        NotUsed = -1,
        Bip5Volts = 0,
        Bip10Volts = 1,
        Bip2Pt5Volts = 2,
        Bip1Pt25Volts = 3,
        Bip1Volts = 4,
        BipPt625Volts = 5,
        BipPt5Volts = 6,
        BipPt1Volts = 7,
        BipPt05Volts = 8,
        BipPt01Volts = 9,
        BipPt005Volts = 10,
        Bip1Pt67Volts = 11,
        BipPt25Volts = 12,
        BipPt2Volts = 13,
        Bip2Volts = 14,
        ...

Questions:
1. Does MccDaq.Range.Bip5Volts correspond to plus/minus 5V ?
2. Which constant corresponds to 0V to 5V ?
3. What does "Bip" stand for? What does "Uni" stand for?
3. Are the constants for MccDaq.Range documented?

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Bip is bipolar or plus/minus. Bip5Volts is -5V to +5V. Uni is unipolar so Uni5Volts is 0V to +5V. The USB-1808X uses 

Bip10Volts, Bip5Volts, Uni10Volts, Uni5Volts. 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...