LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

can we generate millivolts using pci 6723 card

HI,
 
Can I knw how can we generate a analog input in Millivolts using PCI-6723 card.
 
Using the below function I am able to generate volts in the range -10 to 10 v
 
.DAQmxCreateAOVoltageChan(*taskHandle,"Dev1/ao0 : Dev1/ao1","",min,max,DAQmx_Val_Volts,NULL);
 
In the above function 5th parameter is used for generating analog input in volts but I would like to generate a millivolt.
 
Plz reply me ASAP
 
Regards
krishna
0 Kudos
Message 1 of 4
(3,286 Views)
If you call a function such as DAQmxWriteAnalogScalarF64(), the parameter float64 value is a floating point number.  So to output 100mv you would set 0.100 as the output value.
0 Kudos
Message 2 of 4
(3,273 Views)
Alternately, you can create a custom scale like this:

DAQmxCreateLinScale("mV scale", 0.001, 0.0, DAQmx_Val_Volts, "mV");

then use that scale name when you create your channels:

DAQmxCreateAOVoltageChan(..., DAQmx_Val_FromCustomScale, "mV scale");

If you use the custom scale as I've described, make sure that the min and max values you pass in to
DAQmxCreateAOVoltageChan are in mV (i.e. 10000 instead of 10).

Mert A.
National Instruments
0 Kudos
Message 3 of 4
(3,268 Views)

Thanks for reply

Its working now

 

Regards

krishna

0 Kudos
Message 4 of 4
(3,245 Views)