Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9205 voltage range, clamp & multifunctionality

Dear All,
 
1.  I want to use a single-ended connection.  How do I program my voltage range to match those?
2.  Can I configure different range for each channel and use them simultaneously?
3.  How do I programatically set the voltage clamp?
4.  In my application i require the DO pin to drive a relay and the AI pins to acquire.
     Is this possible?
 
I am using cDAQ-9172 & Visual C++.
 
Thanks and regards,
A
 
 
 
0 Kudos
Message 1 of 7
(8,309 Views)
Hi A,
 
The programming information you are looking for can be found in the DAQmx C Reference Help. There is a function called DAQmxCreateAIVoltageChan, which accepts inputs such as the terminalConfig (RSE, NRSE, DIff...) and the maximum and minimum value. The range is determined by the values you set for the maximum and minimum. You can use DAQmxSetAIRngLow or DAQmxSetAIRngHigh to set the limits for the values of the ranges that can be used. If your limits do not fit the available ranges they will be coerced to fit. The maximum value for your range will be the maximum signal that you will read. You can specify one range per task and you can set up more than one task as an analog input.
 
As far as using the DO pin to drive the relays, the DO is not available in the 9172 chassis. It is available when you are using a cRIO chassis.
 
Using the Digital Output and PFI Lines of the 9205/6 with Compact DAQ
http://digital.ni.com/public.nsf/allkb/51DD3F0206860ABC8625724B007364C9
Steve B

Message 2 of 7
(8,293 Views)

Thanks for the information, Steve.

How about the DI pin of this module?

 

Regards,

A

0 Kudos
Message 3 of 7
(8,290 Views)

Hi A,

I am assuming that you are referring to the PFI0 line for the 9205 and the answer is yes, it is available to be used for applications such as routing a clock line or triggering.

Steve B

Message 4 of 7
(8,268 Views)

And again, Steve, can I use this pin and the analog pin concurrently?  On separate tasks, right?

 

Thanks again,

A

0 Kudos
Message 5 of 7
(8,259 Views)

Hi A,

What is the goal of your application? It sounds like you are trying to set up a Digital Input task for a PFI Line, which is not a possibility. The PFI lines can be used for triggering and signal routing, but they are not for making measurements. If you want to measure a digital signal you could use one of the analog inputs and handle the data in software. The PFI line can be used at the same time as the analog inputs, as long as it is used correctly.

Steve B

Message 6 of 7
(8,229 Views)
Thanks for the clarification.  I was simply confused about the digital input pin.  I will use the analog lines, definitely.  I have signals coming out from a driver board and I have to measure the voltage and the sine wave parameters.  So far, as of this time, I have no use for the PFI line.  In planning this project, I want to determine if I'll be encountering some unknown limitation.
 
 
Thanks a bunch,
Smiley Happy
0 Kudos
Message 7 of 7
(8,226 Views)