Jump to content
  • 0

Analog Input Queue - Combine SE and DIFF - USB1608G


KainaanR

Question

I am creating a program to poll data from my USB-1608G to a linux system using the ULDAQ framework. I have succesfully been able to read the channels using bothe the queue and the software based modes.

However, when using the queue I am unable to combine both Single ended and differential queue objects. 

Below is an example of the AiQueueElement I am using for both. I have have many single ended, or many differential. But as soon as I load both into the queue I can not actually sent the queue to the DAQ, it throws an exception.

 

TempCold = AiQueueElement()
TempCold.channel = 2
TempCold.input_mode = uldaq.AiInputMode.SINGLE_ENDED
TempCold.range = uldaq.Range.BIP10VOLTS
queue_list.append(TempCold)

TempHot = AiQueueElement()
TempHot.channel = 4
TempHot.input_mode = uldaq.AiInputMode.DIFFERENTIAL
TempHot.range = uldaq.Range.BIP10VOLTS
queue_list.append(TempHot)

ai_device.a_in_load_queue(queue_list)

If I only use one of these it works, I can have multiples of the same type. But as soons as I try to load in both types I can an exception of.

uldaq.ul_exception.ULException: 41: Invalid mode queue specified

But weirdly enough in the documentation it shows specifically that the queue list may contain items of both SE and DIFF. So I am very confused why it is not functioning.

Any ideas?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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