Jump to content
  • 0

Simultaneous measurement with multiple channel ranges


rbrenes

Question

I have a USB-1808 and I'm trying to perform a simultaneous measurement for channels 0-5, where channels 0-2 would use the bipolar -10V to 10V range while channels 3-5 would use the 0-5V range.

I'm using the Python uldaq API, but I haven't found a way to set up this measurement. I normally would set up the measurement through:

 

ai_device.a_in_scan(
            0,
            5,
            AiInputMode.DIFFERENTIAL,
            Range.BIP10VOLTS,
            samples_per_channel,
            sample_rate,
            ScanOption.EXTTRIGGER,
            flags,
            data,
        )

However, this only allows me the option of setting one range for all those channels. Alternatively, I could set up two different measurements for channels 0-2 and 3-5 but then I don't know how to make sure that the two measurements are actually simultaneous.

Is this actually possible? Or do I always have to have only one range for all the channels I want to scan simultaneously?

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Windows:

Use the a_load_queue function. It accepts configuration arrays that dictate the channel number and voltage range, and it must be called be for a_in_scan.

Linux:

Use the a_in_load_queue function. There is an example that demonstrates how it works.

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