Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

ni 9213 interfaced with Measurement Studio

Solved!
Go to solution

 

I have a question about how to explicitly set a temperature measurement task to use High-Resolution mode for the ni-9213.  I'm able to make the measurement, but whether the measurement is made in High-Resolution or High-Speed mode is ambiguous.  I can't find an overload that let's me set it in Measurement studio using C#.

 

Any help would be appreciated.

 

Derek Hopkins

0 Kudos
Message 1 of 5
(4,760 Views)

Hi,

 

Maybe you can set that by changing the rate and samples per chanel in the ConfigureSampleClock method

 

myTask.Timing.ConfigureSampleClock("", myRate, SampleClockActiveEdge.Rising, SampleQuantityMode.ContinuousSamples, mySamplesPerChannel)
            

 

Curt

0 Kudos
Message 2 of 5
(4,755 Views)

Hi Derek,

 

You will find some information about how to set the ADC Timing Mode for a NI-9213 in this document. The document states: "In text based programming languages, you will use the DAQmxSetAIADCTimingMode Property.  The documentation that explains how to use this property is in the NI-DAQmx C Reference Help.  In the NI-DAQmx C Reference Help document, select NI-DAQmx C Properties»List of Channel Properties.  The property will be located under Analog Input»General Properties»Digitizer/ADC»Timing Mode.".

 

I would suggest you to check the documentation in the NI-DAQmx C Reference Help document for more help as this article says.

 

Jorge
Applications Engineer
National Instruments
________________________________________
Certified LabVIEW Associate Developer (CLAD)
0 Kudos
Message 3 of 5
(4,736 Views)
Solution
Accepted by topic author Derek_Hopkins

C# equivalent: myTask.AIChannels.All.AdcTimingMode = AIAdcTimingMode.HighSpeed;

 

Brad

---
Brad Keryan
NI R&D
Message 4 of 5
(4,725 Views)

Thanks, that is exactly what I wanted to know.

 

Derek Hopkins

0 Kudos
Message 5 of 5
(4,696 Views)