Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Timing property specified requires per device configuration

Hello!

 

I`ve tried to set the AIConvertRate in DAQmx Task with multiple devices. Following exception is thrown:

 

"An exception of type 'NationalInstruments.DAQmx.DaqException' occurred:
DAQmx Timing property specified requires per device configuration.
Explicitly specify the device(s) to which this property should apply.

Property: NationalInstruments.DAQmx.Timing.AIConvertRate"


But how could I set this rate for each device? There is no property to set this at the Device class.

 

Thanks in advance!

 

Holger

 

 

0 Kudos
Message 1 of 9
(4,566 Views)

Hi HoNeu,

can you please upload your code?
Please simplify it for the issue. So it is easier for me to help you.

Regards
Robert

0 Kudos
Message 2 of 9
(4,546 Views)

Hi,

 

sorry for the late reply!

 

I just try to set the AIConvertRate property like this:

 

analogInputTask.Timing.AIConvertRate = ...;

 

then the Exception is thrown.

No matter of how many channels or devices are configured in the task before.

 

Regards

Holger

 

0 Kudos
Message 3 of 9
(4,375 Views)

I`ve also tried the "Set Convert Clock.vi" example from this page http://digital.ni.com/public.nsf/websearch/42484E84DA98053686256D32006E0494?opendocument&Submitted&&...

 

with LabView. Same result, "DAQmx Timing property specified requires per device configuration...." Is it possible to set the convert clock rate in DAQmx or not? Regards Holger
0 Kudos
Message 4 of 9
(4,326 Views)

What device(s) are you using?

 

 

Best Regards,

John Passiak
0 Kudos
Message 5 of 9
(4,317 Views)

For this test I used a NI 9205 DSub device.

 

Regards

Holger

0 Kudos
Message 6 of 9
(4,302 Views)

You'll need to specify the module as the active device for the DAQmx Timing Property.  For example:

 

AI_Convert_Clock_cDAQ.png

 

A cDAQ AI task contains references to both the chassis and the module(s), so even with one module in the task you'll need to specify when setting module-specific properties such as convert rate.

 

 

Best Regards,

John Passiak
0 Kudos
Message 7 of 9
(4,289 Views)

Thanks, that works!

 

But I work with C# and .NET and need to set this property.

There is no possibility to specify an active device in the Timing class.

 

Any idea?

 

Best regards

Holger 

0 Kudos
Message 8 of 9
(4,273 Views)

There must be a way...

 

Unfortunately though I don't have the DAQmx .NET API or documentation installed--I'm not sure offhand what the call is going to look like in C#.

 

 

Best Regards,

John Passiak
0 Kudos
Message 9 of 9
(4,261 Views)